<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="generator" content="quarto-1.7.32">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>modelsummary – modelsummary: Data and Model Summaries in R</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
  width: 0.8em;
  margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */ 
  vertical-align: middle;
}
/* CSS for syntax highlighting */
html { -webkit-text-size-adjust: 100%; }
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
  { counter-reset: source-line 0; }
pre.numberSource code > span
  { position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
  { content: counter(source-line);
    position: relative; left: -1em; text-align: right; vertical-align: baseline;
    border: none; display: inline-block;
    -webkit-touch-callout: none; -webkit-user-select: none;
    -khtml-user-select: none; -moz-user-select: none;
    -ms-user-select: none; user-select: none;
    padding: 0 4px; width: 4em;
  }
pre.numberSource { margin-left: 3em;  padding-left: 4px; }
div.sourceCode
  {   }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
</style>

<script src="../site_libs/quarto-nav/quarto-nav.js"></script>
<script src="../site_libs/quarto-nav/headroom.min.js"></script>
<script src="../site_libs/clipboard/clipboard.min.js"></script>
<script src="../site_libs/quarto-search/autocomplete.umd.js"></script>
<script src="../site_libs/quarto-search/fuse.min.js"></script>
<script src="../site_libs/quarto-search/quarto-search.js"></script>
<meta name="quarto:offset" content="../">
<link href="../man/modelplot.html" rel="next">
<link href="../vignettes/appearance.html" rel="prev">
<script src="../site_libs/quarto-html/quarto.js" type="module"></script>
<script src="../site_libs/quarto-html/tabsets/tabsets.js" type="module"></script>
<script src="../site_libs/quarto-html/popper.min.js"></script>
<script src="../site_libs/quarto-html/tippy.umd.min.js"></script>
<script src="../site_libs/quarto-html/anchor.min.js"></script>
<link href="../site_libs/quarto-html/tippy.css" rel="stylesheet">
<link href="../site_libs/quarto-html/quarto-syntax-highlighting-37eea08aefeeee20ff55810ff984fec1.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="../site_libs/bootstrap/bootstrap.min.js"></script>
<link href="../site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="../site_libs/bootstrap/bootstrap-555d7fa6eb067a0c9d334ac7ef1a20f4.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light"><script id="quarto-search-options" type="application/json">{
  "location": "navbar",
  "copy-button": false,
  "collapse-after": 3,
  "panel-placement": "end",
  "type": "overlay",
  "limit": 50,
  "keyboard-shortcut": [
    "f",
    "/",
    "s"
  ],
  "show-item-context": false,
  "language": {
    "search-no-results-text": "No results",
    "search-matching-documents-text": "matching documents",
    "search-copy-link-title": "Copy link to search",
    "search-hide-matches-text": "Hide additional matches",
    "search-more-match-text": "more match in this document",
    "search-more-matches-text": "more matches in this document",
    "search-clear-button-title": "Clear",
    "search-text-placeholder": "",
    "search-detached-cancel-button-title": "Cancel",
    "search-submit-button-title": "Submit",
    "search-label": "Search"
  }
}</script>
</head>
<body class="nav-sidebar floating nav-fixed quarto-light">

<div id="quarto-search-results"></div>
  <header id="quarto-header" class="headroom fixed-top"><nav class="navbar navbar-expand-lg " data-bs-theme="dark"><div class="navbar-container container-fluid">
      <div class="navbar-brand-container mx-auto">
    <a class="navbar-brand" href="../index.html">
    <span class="navbar-title">modelsummary: Data and Model Summaries in R</span>
    </a>
  </div>
            <div id="quarto-search" class="" title="Search"></div>
          <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
  <span class="navbar-toggler-icon"></span>
</button>
          <div class="collapse navbar-collapse" id="navbarCollapse">
            <ul class="navbar-nav navbar-nav-scroll ms-auto">
<li class="nav-item">
    <a class="nav-link active" href="../vignettes/get_started.html" aria-current="page"> 
<span class="menu-text">Get started</span></a>
  </li>  
  <li class="nav-item compact">
    <a class="nav-link" href="https://github.com/vincentarelbundock/modelsummary/"> <i class="bi bi-github" role="img" aria-label="modelsummary GitHub">
</i> 
<span class="menu-text"></span></a>
  </li>  
</ul>
</div> <!-- /navcollapse -->
            <div class="quarto-navbar-tools">
</div>
      </div> <!-- /container-fluid -->
    </nav><nav class="quarto-secondary-nav"><div class="container-fluid d-flex">
      <button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" role="button" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
        <i class="bi bi-layout-text-sidebar-reverse"></i>
      </button>
        <nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="../man/modelsummary.html">Functions</a></li><li class="breadcrumb-item"><a href="../man/modelsummary.html"><code>modelsummary</code></a></li></ol></nav>
        <a class="flex-grow-1" role="navigation" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">      
        </a>
    </div>
  </nav></header><!-- content --><div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
<!-- sidebar -->
  <nav id="quarto-sidebar" class="sidebar collapse collapse-horizontal quarto-sidebar-collapse-item sidebar-navigation floating overflow-auto"><div class="sidebar-menu-container"> 
    <ul class="list-unstyled mt-1">
<li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../vignettes/get_started.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text">Getting started</span></a>
  </div>
</li>
        <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../vignettes/datasummary.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text">Data Summaries</span></a>
  </div>
</li>
        <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../vignettes/modelsummary.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text">Model Summaries</span></a>
  </div>
</li>
        <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../vignettes/modelplot.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text">Model Plots</span></a>
  </div>
</li>
        <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../vignettes/modelsummary_extension.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text">Custom</span></a>
  </div>
</li>
        <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../vignettes/appearance.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text">Themes and Styles</span></a>
  </div>
</li>
        <li class="sidebar-item sidebar-item-section">
      <div class="sidebar-item-container"> 
            <a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-1" role="navigation" aria-expanded="true">
 <span class="menu-text">Functions</span></a>
          <a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-1" role="navigation" aria-expanded="true" aria-label="Toggle section">
            <i class="bi bi-chevron-right ms-2"></i>
          </a> 
      </div>
      <ul id="quarto-sidebar-section-1" class="collapse list-unstyled sidebar-section depth1 show">
<li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/modelsummary.html" class="sidebar-item-text sidebar-link active">
 <span class="menu-text"><code>modelsummary</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/modelplot.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>modelplot</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/datasummary.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>datasummary</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/datasummary_skim.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>datasummary_skim</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/datasummary_balance.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>datsummary_balance</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/datasummary_crosstab.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>datasummary_crosstab</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/datasummary_correlation.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>datasummary_correlation</code></span></a>
  </div>
</li>
          <li class="sidebar-item sidebar-item-section">
      <div class="sidebar-item-container"> 
            <a class="sidebar-item-text sidebar-link text-start collapsed" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-2" role="navigation" aria-expanded="false">
 <span class="menu-text">Formatting</span></a>
          <a class="sidebar-item-toggle text-start collapsed" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-2" role="navigation" aria-expanded="false" aria-label="Toggle section">
            <i class="bi bi-chevron-right ms-2"></i>
          </a> 
      </div>
      <ul id="quarto-sidebar-section-2" class="collapse list-unstyled sidebar-section depth2 ">
<li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/fmt_decimal.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>fmt_decimal</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/fmt_equivalence.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>fmt_equivalence</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/fmt_sci.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>fmt_sci</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/fmt_significant.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>fmt_significant</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/fmt_sprintf.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>fmt_sprintf</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/fmt_statistic.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>fmt_statistic</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/fmt_term.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>fmt_term</code></span></a>
  </div>
</li>
      </ul>
</li>
          <li class="sidebar-item sidebar-item-section">
      <div class="sidebar-item-container"> 
            <a class="sidebar-item-text sidebar-link text-start collapsed" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-3" role="navigation" aria-expanded="false">
 <span class="menu-text">Utilities</span></a>
          <a class="sidebar-item-toggle text-start collapsed" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-3" role="navigation" aria-expanded="false" aria-label="Toggle section">
            <i class="bi bi-chevron-right ms-2"></i>
          </a> 
      </div>
      <ul id="quarto-sidebar-section-3" class="collapse list-unstyled sidebar-section depth2 ">
<li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/get_estimates.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>get_estimates</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/get_gof.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>get_gof</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/coef_rename.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>coef_rename</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/dvnames.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>dvnames</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/gof_map.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>gof_map</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/datasummary_correlation_format.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>datasummary_correlation_format</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/config_modelsummary.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>config_modelsummary</code></span></a>
  </div>
</li>
          <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../man/update_modelsummary.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><code>update_modelsummary</code></span></a>
  </div>
</li>
      </ul>
</li>
      </ul>
</li>
        <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../NEWS.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text">News</span></a>
  </div>
</li>
        <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../LICENSE.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text">License</span></a>
  </div>
</li>
        <li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="../CITATION.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text">Citation</span></a>
  </div>
</li>
    </ul>
</div>
</nav><div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
<!-- margin-sidebar -->
    <div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
        <nav id="TOC" role="doc-toc" class="toc-active"><h2 id="toc-title">On this page</h2>
   
  <ul>
<li>
<a href="#model-summary-tables" id="toc-model-summary-tables" class="nav-link active" data-scroll-target="#model-summary-tables">Model Summary Tables</a>
  <ul class="collapse">
<li><a href="#description" id="toc-description" class="nav-link" data-scroll-target="#description">Description</a></li>
  <li><a href="#usage" id="toc-usage" class="nav-link" data-scroll-target="#usage">Usage</a></li>
  <li><a href="#arguments" id="toc-arguments" class="nav-link" data-scroll-target="#arguments">Arguments</a></li>
  <li><a href="#details" id="toc-details" class="nav-link" data-scroll-target="#details">Details</a></li>
  <li><a href="#value" id="toc-value" class="nav-link" data-scroll-target="#value">Value</a></li>
  <li><a href="#version-2.0.0-kableextra-and-tinytable" id="toc-version-2.0.0-kableextra-and-tinytable" class="nav-link" data-scroll-target="#version-2.0.0-kableextra-and-tinytable">Version 2.0.0, kableExtra, and tinytable</a></li>
  <li><a href="#global-options" id="toc-global-options" class="nav-link" data-scroll-target="#global-options">Global Options</a></li>
  <li><a href="#latex-preamble" id="toc-latex-preamble" class="nav-link" data-scroll-target="#latex-preamble">LaTeX preamble</a></li>
  <li><a href="#parallel-computation" id="toc-parallel-computation" class="nav-link" data-scroll-target="#parallel-computation">Parallel computation</a></li>
  <li><a href="#references" id="toc-references" class="nav-link" data-scroll-target="#references">References</a></li>
  <li><a href="#examples" id="toc-examples" class="nav-link" data-scroll-target="#examples">Examples</a></li>
  </ul>
</li>
  </ul></nav>
    </div>
<!-- main -->
<main class="content" id="quarto-document-content"><header id="title-block-header" class="quarto-title-block"><nav class="quarto-page-breadcrumbs quarto-title-breadcrumbs d-none d-lg-block" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="../man/modelsummary.html">Functions</a></li><li class="breadcrumb-item"><a href="../man/modelsummary.html"><code>modelsummary</code></a></li></ol></nav></header><section id="model-summary-tables" class="level2 unnumbered"><h2 class="unnumbered anchored" data-anchor-id="model-summary-tables">Model Summary Tables</h2>
<section id="description" class="level3"><h3 class="anchored" data-anchor-id="description">Description</h3>
<p>Create beautiful and customizable tables to summarize several statistical models side-by-side. This function supports dozens of statistical models, and it can produce tables in HTML, LaTeX, Word, Markdown, Typst, PDF, PowerPoint, Excel, RTF, JPG, or PNG. The appearance of the tables can be customized extensively by specifying the <code>output</code> argument, and by using functions from one of the supported table customization packages: <code>tinytable</code>, <code>kableExtra</code>, <code>gt</code>, <code>flextable</code>, <code>huxtable</code>, <code>DT</code>. For more information, see the Details and Examples sections below, and the vignettes on the <code>modelsummary</code> website: https://modelsummary.com/</p>
<ul>
<li>
<p><a href="https://modelsummary.com/vignettes/modelsummary.html">The <code>modelsummary</code> Vignette includes dozens of examples of tables with extensive customizations.</a></p>
</li>
<li>
<p><a href="https://modelsummary.com/vignettes/appearance.html">The Appearance Vignette shows how to modify the look of tables.</a></p>
</li>
</ul></section><section id="usage" class="level3"><h3 class="anchored" data-anchor-id="usage">Usage</h3>
<pre><code class="language-R">modelsummary(
  models,
  output = getOption("modelsummary_output", default = "default"),
  fmt = getOption("modelsummary_fmt", default = 3),
  estimate = getOption("modelsummary_estimate", default = "estimate"),
  statistic = getOption("modelsummary_statistic", default = "std.error"),
  vcov = getOption("modelsummary_vcov", default = NULL),
  conf_level = getOption("modelsummary_conf_level", default = 0.95),
  exponentiate = getOption("modelsummary_exponentiate", default = FALSE),
  stars = getOption("modelsummary_stars", default = FALSE),
  shape = getOption("modelsummary_shape", default = term + statistic ~ model),
  coef_map = getOption("modelsummary_coef_map", default = NULL),
  coef_omit = getOption("modelsummary_coef_omit", default = NULL),
  coef_rename = getOption("modelsummary_coef_rename", default = FALSE),
  gof_map = getOption("modelsummary_gof_map", default = NULL),
  gof_omit = getOption("modelsummary_gof_omit", default = NULL),
  gof_function = getOption("modelsummary_gof_function", default = NULL),
  group_map = getOption("modelsummary_group_map", default = NULL),
  add_columns = getOption("modelsummary_add_columns", default = NULL),
  add_rows = getOption("modelsummary_add_rows", default = NULL),
  align = getOption("modelsummary_align", default = NULL),
  notes = getOption("modelsummary_notes", default = NULL),
  title = getOption("modelsummary_title", default = NULL),
  escape = getOption("modelsummary_escape", default = TRUE),
  ...
)
</code></pre>
</section><section id="arguments" class="level3"><h3 class="anchored" data-anchor-id="arguments">Arguments</h3>
<table>
<tbody><tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="models">models</code>
</td>
<td>
<p>a model, (named) list of models, or nested list of models.</p>
<ul>
<li>
<p>Single model: <code>modelsummary(model)</code></p>
</li>
<li>
<p>Unnamed list of models: <code>modelsummary(list(model1, model2))</code></p>
<ul>
<li>
<p>Models are labelled automatically. The default label style can be altered by setting a global option. See below.</p>
</li>
</ul>
</li>
<li>
<p>Named list of models: <code>modelsummary(list(“A”=model1, “B”=model2))</code></p>
<ul>
<li>
<p>Models are labelled using the list names.</p>
</li>
</ul>
</li>
<li>
<p>Nested list of models:</p>
<ul>
<li>
<p>When using the <code>shape</code> argument with "rbind", "rcollapse", or "cbind" values, <code>models</code> can be a nested list of models to display "panels" or "stacks" of regression models. See the <code>shape</code> argument documentation and examples below.</p>
</li>
</ul>
</li>
</ul>
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="output">output</code>
</td>
<td>
<p>filename or object type (character string)</p>
<ul>
<li>
<p>Supported filename extensions: .docx, .html, .tex, .md, .txt, .csv, .xlsx, .png, .jpg</p>
</li>
<li>
<p>Supported object types: "default", "html", "markdown", "latex", "latex_tabular", "typst", "data.frame", "tinytable", "gt", "kableExtra", "huxtable", "flextable", "DT", "jupyter". The "modelsummary_list" value produces a lightweight object which can be saved and fed back to the <code>modelsummary</code> function.</p>
</li>
<li>
<p>The "default" output format can be set to "tinytable", "kableExtra", "gt", "flextable", "huxtable", "DT", or "markdown"</p>
<ul>
<li>
<p>If the user does not choose a default value, the packages listed above are tried in sequence.</p>
</li>
<li>
<p>Session-specific configuration: <code>options(“modelsummary_factory_default” = “gt”)</code></p>
</li>
<li>
<p>Persistent configuration: <code>config_modelsummary(output = “markdown”)</code></p>
</li>
</ul>
</li>
<li>
<p>Warning: Users should not supply a file name to the <code>output</code> argument if they intend to customize the table with external packages. See the ‘Details’ section.</p>
</li>
<li>
<p>LaTeX compilation requires the <code>booktabs</code> and <code>siunitx</code> packages, but <code>siunitx</code> can be disabled or replaced with global options. See the ‘Details’ section.</p>
</li>
</ul>
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="fmt">fmt</code>
</td>
<td>
<p>how to format numeric values: integer, user-supplied function, or <code>modelsummary</code> function.</p>
<ul>
<li>
<p>Integer: Number of decimal digits</p>
</li>
<li>
<p>User-supplied functions:</p>
<ul>
<li>
<p>Any function which accepts a numeric vector and returns a character vector of the same length.</p>
</li>
</ul>
</li>
<li>
<p><code>modelsummary</code> functions:</p>
<ul>
<li>
<p><code>fmt = fmt_significant(2)</code>: Two significant digits (at the term-level)</p>
</li>
<li>
<p><code>fmt = fmt_decimal(digits = 2, pdigits = 3)</code>: Decimal digits for estimate and p values</p>
</li>
<li>
<p><code>fmt = fmt_sprintf(“%.3f”)</code>: See <code><a href="https://rdrr.io/r/base/sprintf.html">?sprintf</a></code></p>
</li>
<li>
<p><code>fmt = fmt_term(“(Intercept)” = 1, “X” = 2)</code>: Format terms differently</p>
</li>
<li>
<p><code>fmt = fmt_statistic(“estimate” = 1, “r.squared” = 6)</code>: Format statistics differently.</p>
</li>
<li>
<p><code>fmt = fmt_identity()</code>: unformatted raw values</p>
</li>
</ul>
</li>
<li>
<p>string: Passing the string <code>s</code> is equivalent to passing <code>fmt_sprintf(s)</code></p>
</li>
<li>
<p>Note on LaTeX output: To ensure proper typography, all numeric entries are enclosed in the <code style="white-space: pre;"></code> command, which requires the <code>siunitx</code> package to be loaded in the LaTeX preamble. This behavior can be altered with global options. See the ‘Details’ section.</p>
</li>
</ul>
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="estimate">estimate</code>
</td>
<td>
<p>a single string or a character vector of length equal to the number of models. Valid entries include any column name of the data.frame produced by <code>get_estimates(model)</code>, and strings with curly braces compatible with the <code>glue</code> package format. Examples:</p>
<ul>
<li>
<p><code>“estimate”</code></p>
</li>
<li>
<p><code>“{estimate} ({std.error}){stars}”</code></p>
</li>
<li>
<p><code>“{estimate} [{conf.low}, {conf.high}]”</code></p>
</li>
</ul>
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="statistic">statistic</code>
</td>
<td>
<p>vector of strings or <code>glue</code> strings which select uncertainty statistics to report vertically below the estimate. NULL omits all uncertainty statistics.</p>
<ul>
<li>
<p>"conf.int", "std.error", "statistic", "p.value", "conf.low", "conf.high", or any column name produced by <code>get_estimates(model)</code></p>
</li>
<li>
<p><code>glue</code> package strings with braces, with or without R functions, such as:</p>
<ul>
<li>
<p><code>“{p.value} [{conf.low}, {conf.high}]”</code></p>
</li>
<li>
<p><code>“Std.Error: {std.error}”</code></p>
</li>
<li>
<p><code>“{exp(estimate) * std.error}”</code></p>
</li>
<li>
<p>Numbers are automatically rounded and converted to strings. To apply functions to their numeric values, as in the last <code>glue</code> example, users must set <code>fmt=NULL</code>.</p>
</li>
<li>
<p>Parentheses are added automatically unless the string includes <code>glue</code> curly braces <code><a href="https://rdrr.io/r/base/Paren.html">{}</a></code>.</p>
</li>
</ul>
</li>
<li>
<p>Notes:</p>
<ul>
<li>
<p>The names of the <code>statistic</code> are used a column names when using the <code>shape</code> argument to display statistics as columns:</p>
<ul>
<li>
<p><code>statistic=c(“p”=“p.value”, “[”=”conf.low”, ”]”=“conf.high”)</code></p>
</li>
</ul>
</li>
<li>
<p>Some statistics are not supported for all models. See column names in <code>get_estimates(model)</code>, and visit the website to learn how to add custom statistics.</p>
</li>
</ul>
</li>
</ul>
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="vcov">vcov</code>
</td>
<td>
<p>robust standard errors and other manual statistics. The <code>vcov</code> argument accepts six types of input (see the ‘Details’ and ‘Examples’ sections below):</p>
<ul>
<li>
<p>NULL returns the default uncertainty estimates of the model object</p>
</li>
<li>
<p>string, vector, or (named) list of strings. "iid", "classical", and "constant" are aliases for <code>NULL</code>, which returns the model’s default uncertainty estimates. The strings "HC", "HC0", "HC1" (alias: "stata"), "HC2", "HC3" (alias: "robust"), "HC4", "HC4m", "HC5", "HAC", "NeweyWest", "Andrews", "panel-corrected", "outer-product", and "weave" use variance-covariance matrices computed using functions from the <code>sandwich</code> package, or equivalent method. "BS", "bootstrap", "residual", "mammen", "webb", "xy", "wild" use the <code><a href="https://sandwich.R-Forge.R-project.org/reference/vcovBS.html">sandwich::vcovBS()</a></code>. The behavior of those functions can (and sometimes <em>must</em>) be altered by passing arguments to <code>sandwich</code> directly from <code>modelsummary</code> through the ellipsis (<code>…</code>), but it is safer to define your own custom functions as described in the next bullet.</p>
</li>
<li>
<p>function or (named) list of functions which return variance-covariance matrices with row and column names equal to the names of your coefficient estimates (e.g., <code><a href="https://rdrr.io/r/stats/vcov.html">stats::vcov</a></code>, <code><a href="https://sandwich.R-Forge.R-project.org/reference/vcovHC.html">sandwich::vcovHC</a></code>, <code>function(x) vcovPC(x, cluster=“country”)</code>).</p>
</li>
<li>
<p>formula or (named) list of formulas with the cluster variable(s) on the right-hand side (e.g., ~clusterid).</p>
</li>
<li>
<p>named list of <code>length(models)</code> variance-covariance matrices with row and column names equal to the names of your coefficient estimates.</p>
</li>
<li>
<p>a named list of length(models) vectors with names equal to the names of your coefficient estimates. See ‘Examples’ section below. Warning: since this list of vectors can include arbitrary strings or numbers, <code>modelsummary</code> cannot automatically calculate p values. The <code>stars</code> argument may thus use incorrect significance thresholds when <code>vcov</code> is a list of vectors.</p>
</li>
</ul>
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="conf_level">conf_level</code>
</td>
<td>
numeric value between 0 and 1. confidence level to use for confidence intervals. Setting this argument to <code>NULL</code> does not extract confidence intervals, which can be faster for some models.
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="exponentiate">exponentiate</code>
</td>
<td>
TRUE, FALSE, or logical vector of length equal to the number of models. If TRUE, the <code>estimate</code>, <code>conf.low</code>, and <code>conf.high</code> statistics are exponentiated, and the <code>std.error</code> is transformed to <code>exp(estimate)*std.error</code>. The <code>exponentiate</code> argument is ignored for distributional random effects parameters (SD and Cor) and dispersions parameters.
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="stars">stars</code>
</td>
<td>
<p>to indicate statistical significance</p>
<ul>
<li>
<p>FALSE (default): no significance stars.</p>
</li>
<li>
<p>TRUE: <code>c(“+” = .1, “<em>” = .05, ”<strong>” = .01, ”</strong></em>” = 0.001)</code></p>
</li>
<li>
<p>Named numeric vector for custom stars such as <code>c(’*’ = .1, ‘+’ = .05)</code></p>
</li>
<li>
<p>Note: a legend will not be inserted at the bottom of the table when the <code>estimate</code> or <code>statistic</code> arguments use "glue strings" with <a href="https://r-spatial.github.io/stars/">stars</a>.</p>
</li>
</ul>
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="shape">shape</code>
</td>
<td>
<p><code>NULL</code>, formula, or string which determines the shape of a table.</p>
<ul>
<li>
<p><code>NULL</code>: Default shape with terms in rows and models in columns.</p>
</li>
<li>
<p>Formula: The left side determines what appears on rows, and the right side determines what appears on columns. The formula can include one or more group identifier(s) to display related terms together, which can be useful for models with multivariate outcomes or grouped coefficients (See examples section below). The group identifier(s) must be column names produced by: <code>get_estimates(model)</code>. The group identifier(s) can be combined with the term identifier in a single column by using the colon to represent an interaction. If an incomplete formula is supplied (e.g., <code>~statistic</code>), <code>modelsummary</code> tries to complete it automatically. Goodness-of-fit statistics are only appended to the bottom of the table when <code>model</code> is on the right hand side of the formula (i.e., columns). Potential <code>shape</code> values include:</p>
<ul>
<li>
<p><code>term + statistic ~ model</code>: default</p>
</li>
<li>
<p><code>term ~ model + statistic</code>: statistics in separate columns</p>
</li>
<li>
<p><code>model + statistic ~ term</code>: models in rows and terms in columns</p>
</li>
<li>
<p><code>term + response + statistic ~ model</code>: term and group id in separate columns</p>
</li>
<li>
<p><code>term : response + statistic ~ model</code>: term and group id in a single column</p>
</li>
<li>
<p><code>term ~ response</code></p>
</li>
</ul>
</li>
<li>
<p>String: "cbind", "rbind", "rcollapse"</p>
<ul>
<li>
<p>"cbind": side-by-side models with autmoatic spanning column headers to group models (<code>tinytable</code> only feature).</p>
</li>
<li>
<p>"rbind" or "rcollapse": "panels" or "stacks" of regression models.</p>
</li>
<li>
<p>the <code>models</code> argument must be a (potentially named) nested list of models.</p>
</li>
</ul>
<ul>
<li>
<p>Unnamed nested list with 2 panels: <code>list(list(model1, model2), list(model3, model4))</code></p>
</li>
<li>
<p>Named nested list with 2 panels: <code>list(“Panel A” = list(model1, model2), “Panel B” = list(model3, model4))</code></p>
</li>
<li>
<p>Named panels and named models: <code>list(“Panel A” = list(“(I)” = model1, “(II)” = model2), “Panel B” = list(“(I)” = model3, “(II)” = model4))</code></p>
</li>
</ul>
<ul>
<li>
<p>"rbind": Bind the rows of independent regression tables</p>
</li>
<li>
<p>"rcollapse": Bind the rows of regression tables and create a panel at the bottom where we "collapse" goodness-of-fit statistics which are identical across models.</p>
</li>
</ul>
</li>
</ul>
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="coef_map">coef_map</code>
</td>
<td>
character vector. Subset, rename, and reorder coefficients. Coefficients omitted from this vector are omitted from the table. The order of the vector determines the order of the table. <code>coef_map</code> can be a named or an unnamed character vector. If <code>coef_map</code> is a named vector, its values define the labels that must appear in the table, and its names identify the original term names stored in the model object: <code>c(“hp:mpg”=“HPxM/G”)</code>. If <code>coef_map</code> is an unnamed vector, its values must be raw variable names if <code>coef_rename=FALSE</code> and variable labels if <code>coef_rename=TRUE</code>. See <code><a href="https://modelsummary.com/man/get_estimates.html">modelsummary::get_estimates</a></code> to get the coefficient out of a model. See Examples section below.
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="coef_omit">coef_omit</code>
</td>
<td>
<p>integer vector or regular expression to identify which coefficients to omit (or keep) from the table. Positive integers determine which coefficients to omit. Negative integers determine which coefficients to keep. A regular expression can be used to omit coefficients, and perl-compatible "negative lookaheads" can be used to specify which coefficients to <em>keep</em> in the table. Examples:</p>
<ul>
<li>
<p>c(2, 3, 5): omits the second, third, and fifth coefficients.</p>
</li>
<li>
<p>c(-2, -3, -5): negative values keep the second, third, and fifth coefficients.</p>
</li>
<li>
<p><code>“ei”</code>: omit coefficients matching the "ei" substring.</p>
</li>
<li>
<p><code>“^Volume$”</code>: omit the "Volume" coefficient.</p>
</li>
<li>
<p><code>“ei|rc”</code>: omit coefficients matching either the "ei" or the "rc" substrings.</p>
</li>
<li>
<p><code>“^(?!Vol)”</code>: keep coefficients starting with "Vol" (inverse match using a negative lookahead).</p>
</li>
<li>
<p><code>“^(?!.*ei)“</code>: keep coefficients matching the”ei" substring.</p>
</li>
<li>
<p><code>“^(?!.<em>ei|.</em>pt)”</code>: keep coefficients matching either the "ei" or the "pt" substrings.</p>
</li>
<li>
<p>See the Examples section below for complete code.</p>
</li>
</ul>
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="coef_rename">coef_rename</code>
</td>
<td>
<p>logical, named or unnamed character vector, or function</p>
<ul>
<li>
<p>Logical: TRUE renames variables based on the "label" attribute of each column. See the Example section below. Note: renaming is done by the <code>parameters</code> package at the extraction stage, before other arguments are applied like <code>coef_omit</code>. Therefore, this only works for models with builtin support and not for custom models.</p>
</li>
<li>
<p>Unnamed character vector of length equal to the number of coefficients in the final table, after <code>coef_omit</code> is applied.</p>
</li>
<li>
<p>Named character vector: Values refer to the variable names that will appear in the table. Names refer to the original term names stored in the model object. Ex: c("hp:mpg"="hp X mpg")</p>
</li>
<li>
<p>Function: Accepts a character vector of the model’s term names and returns a named vector like the one described above. The <code>modelsummary</code> package supplies a <code><a href="https://modelsummary.com/man/coef_rename.html">coef_rename()</a></code> function which can do common cleaning tasks: <code>modelsummary(model, coef_rename = coef_rename)</code></p>
</li>
</ul>
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="gof_map">gof_map</code>
</td>
<td>
<p>rename, reorder, and omit goodness-of-fit statistics and other model information. This argument accepts 4 types of values:</p>
<ul>
<li>
<p>NULL (default): the <code><a href="https://modelsummary.com/man/gof_map.html">modelsummary::gof_map</a></code> dictionary is used for formatting, and all unknown statistic are included.</p>
</li>
<li>
<p>character vector: "all", "none", or a vector of statistics such as <code>c(“rmse”, “nobs”, “r.squared”)</code>. Elements correspond to colnames in the data.frame produced by <code>get_gof(model)</code>. The <code><a href="https://modelsummary.com/man/gof_map.html">modelsummary::gof_map</a></code> default dictionary is used to format and rename statistics.</p>
</li>
<li>
<p>NA: excludes all statistics from the bottom part of the table.</p>
</li>
<li>
<p>data.frame with 3 columns named "raw", "clean", "fmt". Unknown statistics are omitted. See the ‘Examples’ section below. The <code>fmt</code> column in this data frame only accepts integers. For more flexibility, use a list of lists, as described in the next bullet.</p>
</li>
<li>
<p>list of lists, each of which includes 3 elements named "raw", "clean", "fmt". Unknown statistics are omitted. The <code>fmt</code> element can be a string (<code><a href="https://modelsummary.com/man/fmt_sprintf.html">?fmt_sprintf</a></code>), numeric value (<code><a href="https://modelsummary.com/man/fmt_decimal.html">?fmt_decimal</a></code>), or function which will be used to round/format the string in question. See the ‘Examples section below’.</p>
</li>
</ul>
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="gof_omit">gof_omit</code>
</td>
<td>
<p>string regular expression (perl-compatible) used to determine which statistics to omit from the bottom section of the table. A "negative lookahead" can be used to specify which statistics to <em>keep</em> in the table. Examples:</p>
<ul>
<li>
<p><code>“IC”</code>: omit statistics matching the "IC" substring.</p>
</li>
<li>
<p><code>“BIC|AIC”</code>: omit statistics matching the "AIC" or "BIC" substrings.</p>
</li>
<li>
<p><code>“^(?!.*IC)“</code>: keep statistics matching the”IC" substring.</p>
</li>
</ul>
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="gof_function">gof_function</code>
</td>
<td>
function which accepts a model object in the <code>model</code> argument and returns a 1-row <code>data.frame</code> with one custom goodness-of-fit statistic per column.
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="group_map">group_map</code>
</td>
<td>
named or unnamed character vector. Subset, rename, and reorder coefficient groups specified a grouping variable specified in the <code>shape</code> argument formula. This argument behaves like <code>coef_map</code>.
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="add_columns">add_columns</code>
</td>
<td>
a data.frame (or tibble) with the same number of rows as #’ your main table. By default, rows are appended to the bottom of the table. You can define a "position" attribute of integers to set the columns positions. See Examples section below.
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="add_rows">add_rows</code>
</td>
<td>
<p>a data.frame (or tibble) with the same number of columns as your main table. By default, rows are appended to the bottom of the table. Positions can be defined using integers. In the <code><a href="https://modelsummary.com/man/modelsummary.html">modelsummary()</a></code> function (only), you can also use string shortcuts: "coef_start", "coef_end", "gof_start", "gof_end"</p>
<ul>
<li>
<p><code>attr(new_rows, 1:2)</code></p>
</li>
<li>
<p><code>attr(new_rows, “gof_start”)</code> See Examples section below.</p>
</li>
</ul>
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="align">align</code>
</td>
<td>
<p>A string with a number of characters equal to the number of columns in the table (e.g., <code>align = “lcc”</code>). Valid characters: l, c, r, d.</p>
<ul>
<li>
<p>"l": left-aligned column</p>
</li>
<li>
<p>"c": centered column</p>
</li>
<li>
<p>"r": right-aligned column</p>
</li>
<li>
<p>"d": dot-aligned column. For LaTeX/PDF output, this option requires at least version 3.0.25 of the siunitx LaTeX package. See the LaTeX preamble help section below for commands to insert in your LaTeX preamble.</p>
</li>
</ul>
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="notes">notes</code>
</td>
<td>
list or vector of notes to append to the bottom of the table.
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="title">title</code>
</td>
<td>
string. Cross-reference labels should be added with Quarto or Rmarkdown chunk options when applicable. When saving standalone LaTeX files, users can add a label such as <code style="white-space: pre;">\label{tab:mytable}</code> directly to the title string, while also specifying <code>escape=FALSE</code>.
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="escape">escape</code>
</td>
<td>
boolean TRUE escapes or substitutes LaTeX/HTML characters which could prevent the file from compiling/displaying. <code>TRUE</code> escapes all cells, captions, and notes. Users can have more fine-grained control by setting <code>escape=FALSE</code> and using an external command such as: <code>modelsummary(model, “latex”) |&gt; tinytable::format_tt(tab, j=1:5, escape=TRUE)</code>
</td>
</tr>
<tr>
<td style="white-space: collapse; font-family: monospace; vertical-align: top">
<code id="...">…</code>
</td>
<td>
<p>all other arguments are passed through to three functions. See the documentation of these functions for lists of available arguments.</p>
<ul>
<li>
<p>parameters::model_parameters extracts parameter estimates. Available arguments depend on model type, but include:</p>
<ul>
<li>
<p><code>standardize</code>, <code>include_reference</code>, <code>centrality</code>, <code>dispersion</code>, <code>test</code>, <code>ci_method</code>, <code>prior</code>, <code>diagnostic</code>, <code>rope_range</code>, <code>power</code>, <code>cluster</code>, etc.</p>
</li>
</ul>
</li>
<li>
<p>performance::model_performance extracts goodness-of-fit statistics. Available arguments depend on model type, but include:</p>
<ul>
<li>
<p><code>metrics</code>, <code>estimator</code>, etc.</p>
</li>
</ul>
</li>
<li>
<p>tinytable::tt, kableExtra::kbl or gt::gt draw tables, depending on the value of the <code>output</code> argument. For example, by default <code>modelsummary</code> creates tables with tinytable::tt, which accepts a <code>width</code> and <code>theme</code> arguments.</p>
</li>
</ul>
</td>
</tr>
</tbody></table></section><section id="details" class="level3"><h3 class="anchored" data-anchor-id="details">Details</h3>
<h4 class="anchored">
<code>output</code>
</h4>
<p>The <code>modelsummary_list</code> output is a lightweight format which can be used to save model results, so they can be fed back to <code>modelsummary</code> later to avoid extracting results again.</p>
<p>When a file name with a valid extension is supplied to the <code>output</code> argument, the table is written immediately to file. If you want to customize your table by post-processing it with an external package, you need to choose a different output format and saving mechanism. Unfortunately, the approach differs from package to package:</p>
<ul>
<li>
<p><code>tinytable</code>: set <code>output=“tinytable”</code>, post-process your table, and use the <code><a href="https://vincentarelbundock.github.io/tinytable/man/save_tt.html">tinytable::save_tt</a></code> function.</p>
</li>
<li>
<p><code>gt</code>: set <code>output=“gt”</code>, post-process your table, and use the <code><a href="https://gt.rstudio.com/reference/gtsave.html">gt::gtsave</a></code> function.</p>
</li>
<li>
<p><code>kableExtra</code>: set <code>output</code> to your destination format (e.g., "latex", "html", "markdown"), post-process your table, and use <code><a href="https://rdrr.io/pkg/kableExtra/man/save_kable.html">kableExtra::save_kable</a></code> function.</p>
</li>
</ul>
<h4 class="anchored">
<code>vcov</code>
</h4>
<p>To use a string such as "robust" or "HC0", your model must be supported by the <code>sandwich</code> package. This includes objects such as: lm, glm, survreg, coxph, mlogit, polr, hurdle, zeroinfl, and more.</p>
<p>NULL, "classical", "iid", and "constant" are aliases which do not modify uncertainty estimates and simply report the default standard errors stored in the model object.</p>
<p>One-sided formulas such as <code>~clusterid</code> are passed to the <code><a href="https://sandwich.R-Forge.R-project.org/reference/vcovCL.html">sandwich::vcovCL</a></code> function.</p>
<p>Matrices and functions producing variance-covariance matrices are first passed to <code>lmtest</code>. If this does not work, <code>modelsummary</code> attempts to take the square root of the diagonal to adjust "std.error", but the other uncertainty estimates are not be adjusted.</p>
<p>Numeric vectors are formatted according to <code>fmt</code> and placed in brackets. Character vectors printed as given, without parentheses.</p>
<p>If your model type is supported by the <code>lmtest</code> package, the <code>vcov</code> argument will try to use that package to adjust all the uncertainty estimates, including "std.error", "statistic", "p.value", and "conf.int". If your model is not supported by <code>lmtest</code>, only the "std.error" will be adjusted by, for example, taking the square root of the matrix’s diagonal.</p>
</section><section id="value" class="level3"><h3 class="anchored" data-anchor-id="value">Value</h3>
<p>a regression table in a format determined by the <code>output</code> argument. The <code>backend</code> attribute includes the backend used to extract estimates and goodness-of-fit measure.</p>
</section><section id="version-2.0.0-kableextra-and-tinytable" class="level3"><h3 class="anchored" data-anchor-id="version-2.0.0-kableextra-and-tinytable">Version 2.0.0, kableExtra, and tinytable</h3>
<p>Since version 2.0.0, <code>modelsummary</code> uses <code>tinytable</code> as its default table-drawing backend. Learn more at: https://vincentarelbundock.github.io/tinytable/",</p>
<p>Revert to <code>kableExtra</code> for one session:</p>
<p><code>options(modelsummary_factory_default = ‘kableExtra’)</code> <code>options(modelsummary_factory_latex = ‘kableExtra’)</code> <code>options(modelsummary_factory_html = ‘kableExtra’)</code></p>
</section><section id="global-options" class="level3"><h3 class="anchored" data-anchor-id="global-options">Global Options</h3>
<p>The behavior of <code>modelsummary</code> can be modified by setting global options. In particular, most of the arguments for most of the package’s functions cna be set using global options. For example:</p>
<ul>
<li>
<p><code>options(modelsummary_output = “modelsummary_list”)</code></p>
</li>
<li>
<p><code>options(modelsummary_statistic = ‘({conf.low}, {conf.high})’)</code></p>
</li>
<li>
<p><code>options(modelsummary_stars = TRUE)</code></p>
</li>
</ul>
<p>Options not specific to given arguments are listed below.</p>
<h4 class="anchored">
Model labels: default column names
</h4>
<p>These global option changes the style of the default column headers:</p>
<ul>
<li>
<p><code>options(modelsummary_model_labels = “roman”)</code></p>
</li>
</ul>
<p>The supported styles are: "model", "arabic", "letters", "roman", "(arabic)", "(letters)", "(roman)"</p>
<h4 class="anchored">
Table-making packages
</h4>
<p><code>modelsummary</code> supports 6 table-making packages: <code>tinytable</code>, <code>kableExtra</code>, <code>gt</code>, <code>flextable</code>, <code>huxtable</code>, and <code>DT</code>. Some of these packages have overlapping functionalities. To change the default backend used for a specific file format, you can use ’ the <code>options</code> function:</p>
<p><code>options(modelsummary_factory_html = ‘kableExtra’)</code> <code>options(modelsummary_factory_word = ‘huxtable’)</code> <code>options(modelsummary_factory_png = ‘gt’)</code> <code>options(modelsummary_factory_latex = ‘gt’)</code> <code>options(modelsummary_factory_latex_tabular = ‘kableExtra’)</code></p>
<h4 class="anchored">
Table themes
</h4>
<p>Change the look of tables in an automated and replicable way, using the <code>modelsummary</code> theming functionality. See the vignette: https://modelsummary.com/vignettes/appearance.html</p>
<ul>
<li>
<p><code>modelsummary_theme_gt</code></p>
</li>
<li>
<p><code>modelsummary_theme_kableExtra</code></p>
</li>
<li>
<p><code>modelsummary_theme_huxtable</code></p>
</li>
<li>
<p><code>modelsummary_theme_flextable</code></p>
</li>
<li>
<p><code>modelsummary_theme_dataframe</code></p>
</li>
</ul>
<h4 class="anchored">
Model extraction functions
</h4>
<p><code>modelsummary</code> can use two sets of packages to extract information from statistical models: the <code>easystats</code> family (<code>performance</code> and <code>parameters</code>) and <code>broom</code>. By default, it uses <code>easystats</code> first and then falls back on <code>broom</code> in case of failure. You can change the order of priorities or include goodness-of-fit extracted by <em>both</em> packages by setting:</p>
<p><code>options(modelsummary_get = “easystats”)</code></p>
<p><code>options(modelsummary_get = “broom”)</code></p>
<p><code>options(modelsummary_get = “all”)</code></p>
<p>The "all" option (default) means easystats then broom.</p>
<h4 class="anchored">
Formatting numeric entries
</h4>
<p>By default, LaTeX tables enclose all numeric entries in the <code style="white-space: pre;"></code> command from the siunitx package. To prevent this behavior, or to enclose numbers in dollar signs (for LaTeX math mode), users can call:</p>
<p><code>options(modelsummary_format_numeric_latex = “plain”)</code></p>
<p><code>options(modelsummary_format_numeric_latex = “mathmode”)</code></p>
<p>A similar option can be used to display numerical entries using MathJax in HTML tables:</p>
<p><code>options(modelsummary_format_numeric_html = “mathjax”)</code></p>
</section><section id="latex-preamble" class="level3"><h3 class="anchored" data-anchor-id="latex-preamble">LaTeX preamble</h3>
<p>When creating LaTeX via the <code>tinytable</code> backend (default in version 2.0.0 and later), it is useful to include the following commands in the LaTeX preamble of your documents. These commands are automatically added to the preamble when compiling Rmarkdown or Quarto documents, except when the <code><a href="https://modelsummary.com/man/modelsummary.html">modelsummary()</a></code> calls are cached.</p>
<div class="sourceCode latex">
<pre>\usepackage{tabularray}
\usepackage{float}
\usepackage{graphicx}
\usepackage[normalem]{ulem}
\UseTblrLibrary{booktabs}
\UseTblrLibrary{siunitx}
\newcommand{\tinytableTabularrayUnderline}[1]{\underline{#1}}
\newcommand{\tinytableTabularrayStrikeout}[1]{\sout{#1}}
\NewTableCommand{\tinytableDefineColor}[3]{\definecolor{#1}{#2}{#3}}
</pre>
</div>
</section><section id="parallel-computation" class="level3"><h3 class="anchored" data-anchor-id="parallel-computation">Parallel computation</h3>
<p>It can take a long time to compute and extract summary statistics from certain models (e.g., Bayesian). In those cases, users can parallelize the process. Since parallelization occurs at the model level, no speedup is available for tables with a single model. Users on mac or linux can launch parallel computation using the built-in <code>parallel</code> package. All they need to do is supply a <code>mc.cores</code> argument which will be pushed forward to the <code><a href="https://rdrr.io/r/parallel/mclapply.html">parallel::mclapply</a></code> function:</p>
<div class="sourceCode r">
<pre>modelsummary(model_list, mc.cores = 5)
</pre>
</div>
<p>All users can also use the <code>future.apply</code> package to parallelize model summaries. For example, to use 4 cores to extract results:</p>
<div class="sourceCode r">
<pre>library(future.apply)
plan(multicore, workers = 4)
options("modelsummary_future" = TRUE)
modelsummary(model_list)
</pre>
</div>
<p>Note that the "multicore" plan only parallelizes under mac or linux. Windows users can use <code>plan(multisession)</code> instead. However, note that the first time <code><a href="https://modelsummary.com/man/modelsummary.html">modelsummary()</a></code> is called under multisession can be a fair bit longer, because of extra costs in passing data to and loading required packages on to workers. Subsequent calls to <code><a href="https://modelsummary.com/man/modelsummary.html">modelsummary()</a></code> will often be much faster.</p>
<p>Some users have reported difficult to reproduce errors when using the <code>future</code> package with some packages. The <code>future</code> parallelization in <code>modelsummary</code> can be disabled by calling:</p>
<p><code>options(“modelsummary_future” = FALSE)</code></p>
</section><section id="references" class="level3"><h3 class="anchored" data-anchor-id="references">References</h3>
<p>Arel-Bundock V (2022). “modelsummary: Data and Model Summaries in R.” <em>Journal of Statistical Software</em>, <em>103</em>(1), 1-23. <a href="https://doi.org/10.18637/jss.v103.i01">doi:10.18637/jss.v103.i01</a>.’</p>
</section><section id="examples" class="level3"><h3 class="anchored" data-anchor-id="examples">Examples</h3>
<div class="cell">
<div class="sourceCode" id="cb1"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="kw"><a href="https://rdrr.io/r/base/library.html">library</a></span><span class="op">(</span><span class="st"><a href="https://modelsummary.com">"modelsummary"</a></span><span class="op">)</span></span>
<span></span>
<span></span>
<span><span class="co"># The `modelsummary` website includes \emph{many} examples and tutorials:</span></span>
<span><span class="co"># https://modelsummary.com</span></span>
<span></span>
<span><span class="kw"><a href="https://rdrr.io/r/base/library.html">library</a></span><span class="op">(</span><span class="va"><a href="https://modelsummary.com">modelsummary</a></span><span class="op">)</span></span>
<span></span>
<span><span class="co"># load data and estimate models</span></span>
<span><span class="fu">utils</span><span class="fu">::</span><span class="fu"><a href="https://rdrr.io/r/utils/data.html">data</a></span><span class="op">(</span><span class="va">trees</span><span class="op">)</span></span>
<span><span class="va">models</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html">list</a></span><span class="op">(</span><span class="op">)</span></span>
<span><span class="va">models</span><span class="op">[[</span><span class="st">"Bivariate"</span><span class="op">]</span><span class="op">]</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/stats/lm.html">lm</a></span><span class="op">(</span><span class="va">Girth</span> <span class="op">~</span> <span class="va">Height</span>, data <span class="op">=</span> <span class="va">trees</span><span class="op">)</span></span>
<span><span class="va">models</span><span class="op">[[</span><span class="st">"Multivariate"</span><span class="op">]</span><span class="op">]</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/stats/lm.html">lm</a></span><span class="op">(</span><span class="va">Girth</span> <span class="op">~</span> <span class="va">Height</span> <span class="op">+</span> <span class="va">Volume</span>, data <span class="op">=</span> <span class="va">trees</span><span class="op">)</span></span>
<span></span>
<span><span class="co"># simple table</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_vemgaerpxdm6fa96u78c(i, j, css_id) {
          var table = document.getElementById("tinytable_vemgaerpxdm6fa96u78c");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_vemgaerpxdm6fa96u78c(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_vemgaerpxdm6fa96u78c");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '14', j: 1 }, { i: '14', j: 2 },  ], css_id: 'tinytable_css_rf9tvsjr8ce7243dqyov',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_y668h4jfj3kouy8vvvg1',}, 
          { positions: [ { i: '1', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '4', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '12', j: 2 }, { i: '2', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '10', j: 2 }, { i: '7', j: 2 }, { i: '9', j: 2 }, { i: '11', j: 2 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_h1o4srrpxc8aqwg62aqq',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_kdfyp6goadwauzfxiqkz',}, 
          { positions: [ { i: '14', j: 0 },  ], css_id: 'tinytable_css_4ekyhqiq49wb9u6x0hf6',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_58ch6ga9tt7rdy7qlqtu',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 },  ], css_id: 'tinytable_css_c7acjrxf2yi3ksvhkssj',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_scu40yso2fsxigotb7sq',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_vemgaerpxdm6fa96u78c(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_rf9tvsjr8ce7243dqyov, .table th.tinytable_css_rf9tvsjr8ce7243dqyov { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_y668h4jfj3kouy8vvvg1, .table th.tinytable_css_y668h4jfj3kouy8vvvg1 { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_h1o4srrpxc8aqwg62aqq, .table th.tinytable_css_h1o4srrpxc8aqwg62aqq { text-align: center; }
      .table td.tinytable_css_kdfyp6goadwauzfxiqkz, .table th.tinytable_css_kdfyp6goadwauzfxiqkz { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_4ekyhqiq49wb9u6x0hf6, .table th.tinytable_css_4ekyhqiq49wb9u6x0hf6 { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_58ch6ga9tt7rdy7qlqtu, .table th.tinytable_css_58ch6ga9tt7rdy7qlqtu { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_c7acjrxf2yi3ksvhkssj, .table th.tinytable_css_c7acjrxf2yi3ksvhkssj { text-align: left; }
      .table td.tinytable_css_scu40yso2fsxigotb7sq, .table th.tinytable_css_scu40yso2fsxigotb7sq { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_vemgaerpxdm6fa96u78c" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(5.960)</td>
                  <td data-row="2" data-col="2">(1.973)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.078)</td>
                  <td data-row="4" data-col="2">(0.028)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Volume</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(0.011)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Num.Obs.</td>
                  <td data-row="7" data-col="1">31</td>
                  <td data-row="7" data-col="2">31</td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2</td>
                  <td data-row="8" data-col="1">0.270</td>
                  <td data-row="8" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="9" data-col="0">R2 Adj.</td>
                  <td data-row="9" data-col="1">0.244</td>
                  <td data-row="9" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="10" data-col="0">AIC</td>
                  <td data-row="10" data-col="1">154.1</td>
                  <td data-row="10" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="11" data-col="0">BIC</td>
                  <td data-row="11" data-col="1">158.4</td>
                  <td data-row="11" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="12" data-col="0">Log.Lik.</td>
                  <td data-row="12" data-col="1">-74.061</td>
                  <td data-row="12" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="13" data-col="0">F</td>
                  <td data-row="13" data-col="1">10.707</td>
                  <td data-row="13" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="14" data-col="0">RMSE</td>
                  <td data-row="14" data-col="1">2.64</td>
                  <td data-row="14" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb2"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># statistic</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, statistic <span class="op">=</span> <span class="cn">NULL</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_8tdk0q6jy9oo8f3h7nid(i, j, css_id) {
          var table = document.getElementById("tinytable_8tdk0q6jy9oo8f3h7nid");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_8tdk0q6jy9oo8f3h7nid(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_8tdk0q6jy9oo8f3h7nid");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '11', j: 1 }, { i: '11', j: 2 },  ], css_id: 'tinytable_css_vlittvhun0n50prfg9j4',}, 
          { positions: [ { i: '3', j: 2 }, { i: '3', j: 1 },  ], css_id: 'tinytable_css_wlfgdui3dc87o0y5jz6h',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '4', j: 2 }, { i: '5', j: 1 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '4', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '7', j: 2 }, { i: '8', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '6', j: 2 }, { i: '9', j: 2 }, { i: '10', j: 2 },  ], css_id: 'tinytable_css_dfjc3rvnk3aoxh08o041',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_7uuz074inv2ecsqgr6xg',}, 
          { positions: [ { i: '11', j: 0 },  ], css_id: 'tinytable_css_xoyx4st4r6xqbcy3mlz1',}, 
          { positions: [ { i: '3', j: 0 },  ], css_id: 'tinytable_css_cpbqe2vshf0ewkuepo5j',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '7', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 },  ], css_id: 'tinytable_css_rjqdpbl30cqe1livrfas',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_3mwyrdaq0y3ueow4pyp6',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_8tdk0q6jy9oo8f3h7nid(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_vlittvhun0n50prfg9j4, .table th.tinytable_css_vlittvhun0n50prfg9j4 { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_wlfgdui3dc87o0y5jz6h, .table th.tinytable_css_wlfgdui3dc87o0y5jz6h { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_dfjc3rvnk3aoxh08o041, .table th.tinytable_css_dfjc3rvnk3aoxh08o041 { text-align: center; }
      .table td.tinytable_css_7uuz074inv2ecsqgr6xg, .table th.tinytable_css_7uuz074inv2ecsqgr6xg { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_xoyx4st4r6xqbcy3mlz1, .table th.tinytable_css_xoyx4st4r6xqbcy3mlz1 { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_cpbqe2vshf0ewkuepo5j, .table th.tinytable_css_cpbqe2vshf0ewkuepo5j { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_rjqdpbl30cqe1livrfas, .table th.tinytable_css_rjqdpbl30cqe1livrfas { text-align: left; }
      .table td.tinytable_css_3mwyrdaq0y3ueow4pyp6, .table th.tinytable_css_3mwyrdaq0y3ueow4pyp6 { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_8tdk0q6jy9oo8f3h7nid" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0">Height</td>
                  <td data-row="2" data-col="1">0.256</td>
                  <td data-row="2" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Volume</td>
                  <td data-row="3" data-col="1"></td>
                  <td data-row="3" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="4" data-col="0">Num.Obs.</td>
                  <td data-row="4" data-col="1">31</td>
                  <td data-row="4" data-col="2">31</td>
                </tr>
<tr>
<td data-row="5" data-col="0">R2</td>
                  <td data-row="5" data-col="1">0.270</td>
                  <td data-row="5" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="6" data-col="0">R2 Adj.</td>
                  <td data-row="6" data-col="1">0.244</td>
                  <td data-row="6" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="7" data-col="0">AIC</td>
                  <td data-row="7" data-col="1">154.1</td>
                  <td data-row="7" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="8" data-col="0">BIC</td>
                  <td data-row="8" data-col="1">158.4</td>
                  <td data-row="8" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="9" data-col="0">Log.Lik.</td>
                  <td data-row="9" data-col="1">-74.061</td>
                  <td data-row="9" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="10" data-col="0">F</td>
                  <td data-row="10" data-col="1">10.707</td>
                  <td data-row="10" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="11" data-col="0">RMSE</td>
                  <td data-row="11" data-col="1">2.64</td>
                  <td data-row="11" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb3"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, statistic <span class="op">=</span> <span class="st">"p.value"</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_ib6smxci4nzm1fxdibf1(i, j, css_id) {
          var table = document.getElementById("tinytable_ib6smxci4nzm1fxdibf1");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_ib6smxci4nzm1fxdibf1(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_ib6smxci4nzm1fxdibf1");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '14', j: 1 }, { i: '14', j: 2 },  ], css_id: 'tinytable_css_rwas3w2byw6h09epsdvj',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_991vwiuuwz6ee3opl9kq',}, 
          { positions: [ { i: '1', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '4', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '12', j: 2 }, { i: '2', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '10', j: 2 }, { i: '7', j: 2 }, { i: '9', j: 2 }, { i: '11', j: 2 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_flqzhzqegr5tp4vac4zo',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_f9r387g1925ekkqbcxzb',}, 
          { positions: [ { i: '14', j: 0 },  ], css_id: 'tinytable_css_iaecvoi00vzxt9ds7lpv',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_f36qyckfoth9eiivyeh3',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 },  ], css_id: 'tinytable_css_eqt0u79hurb98hptmsec',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_kd9emtx0uvngop6nba8g',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_ib6smxci4nzm1fxdibf1(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_rwas3w2byw6h09epsdvj, .table th.tinytable_css_rwas3w2byw6h09epsdvj { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_991vwiuuwz6ee3opl9kq, .table th.tinytable_css_991vwiuuwz6ee3opl9kq { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_flqzhzqegr5tp4vac4zo, .table th.tinytable_css_flqzhzqegr5tp4vac4zo { text-align: center; }
      .table td.tinytable_css_f9r387g1925ekkqbcxzb, .table th.tinytable_css_f9r387g1925ekkqbcxzb { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_iaecvoi00vzxt9ds7lpv, .table th.tinytable_css_iaecvoi00vzxt9ds7lpv { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_f36qyckfoth9eiivyeh3, .table th.tinytable_css_f36qyckfoth9eiivyeh3 { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_eqt0u79hurb98hptmsec, .table th.tinytable_css_eqt0u79hurb98hptmsec { text-align: left; }
      .table td.tinytable_css_kd9emtx0uvngop6nba8g, .table th.tinytable_css_kd9emtx0uvngop6nba8g { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_ib6smxci4nzm1fxdibf1" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(0.308)</td>
                  <td data-row="2" data-col="2">(
                </td>
</tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.003)</td>
                  <td data-row="4" data-col="2">(0.119)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Volume</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(
                </td>
</tr>
<tr>
<td data-row="7" data-col="0">Num.Obs.</td>
                  <td data-row="7" data-col="1">31</td>
                  <td data-row="7" data-col="2">31</td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2</td>
                  <td data-row="8" data-col="1">0.270</td>
                  <td data-row="8" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="9" data-col="0">R2 Adj.</td>
                  <td data-row="9" data-col="1">0.244</td>
                  <td data-row="9" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="10" data-col="0">AIC</td>
                  <td data-row="10" data-col="1">154.1</td>
                  <td data-row="10" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="11" data-col="0">BIC</td>
                  <td data-row="11" data-col="1">158.4</td>
                  <td data-row="11" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="12" data-col="0">Log.Lik.</td>
                  <td data-row="12" data-col="1">-74.061</td>
                  <td data-row="12" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="13" data-col="0">F</td>
                  <td data-row="13" data-col="1">10.707</td>
                  <td data-row="13" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="14" data-col="0">RMSE</td>
                  <td data-row="14" data-col="1">2.64</td>
                  <td data-row="14" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb4"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, statistic <span class="op">=</span> <span class="st">"statistic"</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_vvj0sn19jrwl9ym8psx6(i, j, css_id) {
          var table = document.getElementById("tinytable_vvj0sn19jrwl9ym8psx6");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_vvj0sn19jrwl9ym8psx6(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_vvj0sn19jrwl9ym8psx6");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '14', j: 1 }, { i: '14', j: 2 },  ], css_id: 'tinytable_css_s5pdnjm1b5idnyj1f3l0',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_ngjniegm9yft90tkcss1',}, 
          { positions: [ { i: '1', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '4', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '12', j: 2 }, { i: '2', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '10', j: 2 }, { i: '7', j: 2 }, { i: '9', j: 2 }, { i: '11', j: 2 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_16625sfkwbj1quij33s5',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_wzfb6ebki4fea3ewkqhl',}, 
          { positions: [ { i: '14', j: 0 },  ], css_id: 'tinytable_css_h957g819kv7z2j6fk6hf',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_1oazlr3z20ius4fasv0t',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 },  ], css_id: 'tinytable_css_pqd9ho58dbjjmme53g4h',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_kqcgz4tsddbq4lr08trp',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_vvj0sn19jrwl9ym8psx6(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_s5pdnjm1b5idnyj1f3l0, .table th.tinytable_css_s5pdnjm1b5idnyj1f3l0 { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_ngjniegm9yft90tkcss1, .table th.tinytable_css_ngjniegm9yft90tkcss1 { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_16625sfkwbj1quij33s5, .table th.tinytable_css_16625sfkwbj1quij33s5 { text-align: center; }
      .table td.tinytable_css_wzfb6ebki4fea3ewkqhl, .table th.tinytable_css_wzfb6ebki4fea3ewkqhl { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_h957g819kv7z2j6fk6hf, .table th.tinytable_css_h957g819kv7z2j6fk6hf { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_1oazlr3z20ius4fasv0t, .table th.tinytable_css_1oazlr3z20ius4fasv0t { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_pqd9ho58dbjjmme53g4h, .table th.tinytable_css_pqd9ho58dbjjmme53g4h { text-align: left; }
      .table td.tinytable_css_kqcgz4tsddbq4lr08trp, .table th.tinytable_css_kqcgz4tsddbq4lr08trp { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_vvj0sn19jrwl9ym8psx6" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(-1.038)</td>
                  <td data-row="2" data-col="2">(5.482)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(3.272)</td>
                  <td data-row="4" data-col="2">(-1.609)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Volume</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(17.816)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Num.Obs.</td>
                  <td data-row="7" data-col="1">31</td>
                  <td data-row="7" data-col="2">31</td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2</td>
                  <td data-row="8" data-col="1">0.270</td>
                  <td data-row="8" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="9" data-col="0">R2 Adj.</td>
                  <td data-row="9" data-col="1">0.244</td>
                  <td data-row="9" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="10" data-col="0">AIC</td>
                  <td data-row="10" data-col="1">154.1</td>
                  <td data-row="10" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="11" data-col="0">BIC</td>
                  <td data-row="11" data-col="1">158.4</td>
                  <td data-row="11" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="12" data-col="0">Log.Lik.</td>
                  <td data-row="12" data-col="1">-74.061</td>
                  <td data-row="12" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="13" data-col="0">F</td>
                  <td data-row="13" data-col="1">10.707</td>
                  <td data-row="13" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="14" data-col="0">RMSE</td>
                  <td data-row="14" data-col="1">2.64</td>
                  <td data-row="14" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb5"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, statistic <span class="op">=</span> <span class="st">"conf.int"</span>, conf_level <span class="op">=</span> <span class="fl">0.99</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_m62gotpeu509lfbjozuv(i, j, css_id) {
          var table = document.getElementById("tinytable_m62gotpeu509lfbjozuv");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_m62gotpeu509lfbjozuv(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_m62gotpeu509lfbjozuv");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '14', j: 1 }, { i: '14', j: 2 },  ], css_id: 'tinytable_css_qgrlf8eu8uvqt32vl2wf',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_02mqn7iiefd5yco2emji',}, 
          { positions: [ { i: '1', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '4', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '12', j: 2 }, { i: '2', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '10', j: 2 }, { i: '7', j: 2 }, { i: '9', j: 2 }, { i: '11', j: 2 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_isyy7uektuqqbzg982qe',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_dzv9mdk03wccobbqn8mn',}, 
          { positions: [ { i: '14', j: 0 },  ], css_id: 'tinytable_css_mtjp7vq9tin44ujgfkz7',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_pdtlo469bv3j4ruwwrc7',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 },  ], css_id: 'tinytable_css_08mfm92ldu6tsbbgr7t1',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_ixei793t3gzpu6e5uw78',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_m62gotpeu509lfbjozuv(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_qgrlf8eu8uvqt32vl2wf, .table th.tinytable_css_qgrlf8eu8uvqt32vl2wf { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_02mqn7iiefd5yco2emji, .table th.tinytable_css_02mqn7iiefd5yco2emji { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_isyy7uektuqqbzg982qe, .table th.tinytable_css_isyy7uektuqqbzg982qe { text-align: center; }
      .table td.tinytable_css_dzv9mdk03wccobbqn8mn, .table th.tinytable_css_dzv9mdk03wccobbqn8mn { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_mtjp7vq9tin44ujgfkz7, .table th.tinytable_css_mtjp7vq9tin44ujgfkz7 { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_pdtlo469bv3j4ruwwrc7, .table th.tinytable_css_pdtlo469bv3j4ruwwrc7 { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_08mfm92ldu6tsbbgr7t1, .table th.tinytable_css_08mfm92ldu6tsbbgr7t1 { text-align: left; }
      .table td.tinytable_css_ixei793t3gzpu6e5uw78, .table th.tinytable_css_ixei793t3gzpu6e5uw78 { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_m62gotpeu509lfbjozuv" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">[-22.617, 10.240]</td>
                  <td data-row="2" data-col="2">[5.364, 16.269]</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">[0.040, 0.471]</td>
                  <td data-row="4" data-col="2">[-0.124, 0.033]</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Volume</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">[0.165, 0.225]</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Num.Obs.</td>
                  <td data-row="7" data-col="1">31</td>
                  <td data-row="7" data-col="2">31</td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2</td>
                  <td data-row="8" data-col="1">0.270</td>
                  <td data-row="8" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="9" data-col="0">R2 Adj.</td>
                  <td data-row="9" data-col="1">0.244</td>
                  <td data-row="9" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="10" data-col="0">AIC</td>
                  <td data-row="10" data-col="1">154.1</td>
                  <td data-row="10" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="11" data-col="0">BIC</td>
                  <td data-row="11" data-col="1">158.4</td>
                  <td data-row="11" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="12" data-col="0">Log.Lik.</td>
                  <td data-row="12" data-col="1">-74.061</td>
                  <td data-row="12" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="13" data-col="0">F</td>
                  <td data-row="13" data-col="1">10.707</td>
                  <td data-row="13" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="14" data-col="0">RMSE</td>
                  <td data-row="14" data-col="1">2.64</td>
                  <td data-row="14" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb6"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, statistic <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html">c</a></span><span class="op">(</span></span>
<span>  <span class="st">"t = {statistic}"</span>,</span>
<span>  <span class="st">"se = {std.error}"</span>,</span>
<span>  <span class="st">"conf.int"</span><span class="op">)</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_s6t8k4jwsffunbzrgcud(i, j, css_id) {
          var table = document.getElementById("tinytable_s6t8k4jwsffunbzrgcud");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_s6t8k4jwsffunbzrgcud(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_s6t8k4jwsffunbzrgcud");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '20', j: 1 }, { i: '20', j: 2 },  ], css_id: 'tinytable_css_s3rnrkb36p0ovyt8qubl',}, 
          { positions: [ { i: '12', j: 1 }, { i: '12', j: 2 },  ], css_id: 'tinytable_css_tiefxo7dox5c69mw10zl',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '5', j: 1 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '4', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '4', j: 2 }, { i: '13', j: 1 }, { i: '14', j: 1 }, { i: '15', j: 1 }, { i: '16', j: 1 }, { i: '17', j: 1 }, { i: '18', j: 1 }, { i: '19', j: 1 }, { i: '3', j: 2 }, { i: '8', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '7', j: 2 }, { i: '17', j: 2 }, { i: '5', j: 2 }, { i: '6', j: 2 }, { i: '11', j: 2 }, { i: '8', j: 2 }, { i: '9', j: 2 }, { i: '10', j: 2 }, { i: '15', j: 2 }, { i: '16', j: 2 }, { i: '13', j: 2 }, { i: '14', j: 2 }, { i: '19', j: 2 }, { i: '18', j: 2 },  ], css_id: 'tinytable_css_q4ywrl4kjala6wiz6ksc',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_mgihzdxzidbpxee6c6e7',}, 
          { positions: [ { i: '20', j: 0 },  ], css_id: 'tinytable_css_h2vt8bv89dgwq8tyj9ej',}, 
          { positions: [ { i: '12', j: 0 },  ], css_id: 'tinytable_css_1gzkneetpitrjpsom7f1',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 }, { i: '16', j: 0 }, { i: '13', j: 0 }, { i: '14', j: 0 }, { i: '15', j: 0 }, { i: '17', j: 0 }, { i: '18', j: 0 }, { i: '19', j: 0 },  ], css_id: 'tinytable_css_sixvxj44v5b5gfdkg9xt',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_emut8zusp3sjxroii0t5',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_s6t8k4jwsffunbzrgcud(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_s3rnrkb36p0ovyt8qubl, .table th.tinytable_css_s3rnrkb36p0ovyt8qubl { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_tiefxo7dox5c69mw10zl, .table th.tinytable_css_tiefxo7dox5c69mw10zl { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_q4ywrl4kjala6wiz6ksc, .table th.tinytable_css_q4ywrl4kjala6wiz6ksc { text-align: center; }
      .table td.tinytable_css_mgihzdxzidbpxee6c6e7, .table th.tinytable_css_mgihzdxzidbpxee6c6e7 { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_h2vt8bv89dgwq8tyj9ej, .table th.tinytable_css_h2vt8bv89dgwq8tyj9ej { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_1gzkneetpitrjpsom7f1, .table th.tinytable_css_1gzkneetpitrjpsom7f1 { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_sixvxj44v5b5gfdkg9xt, .table th.tinytable_css_sixvxj44v5b5gfdkg9xt { text-align: left; }
      .table td.tinytable_css_emut8zusp3sjxroii0t5, .table th.tinytable_css_emut8zusp3sjxroii0t5 { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_s6t8k4jwsffunbzrgcud" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">t = -1.038</td>
                  <td data-row="2" data-col="2">t = 5.482</td>
                </tr>
<tr>
<td data-row="3" data-col="0"></td>
                  <td data-row="3" data-col="1">se = 5.960</td>
                  <td data-row="3" data-col="2">se = 1.973</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">[-18.378, 6.002]</td>
                  <td data-row="4" data-col="2">[6.774, 14.858]</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Height</td>
                  <td data-row="5" data-col="1">0.256</td>
                  <td data-row="5" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1">t = 3.272</td>
                  <td data-row="6" data-col="2">t = -1.609</td>
                </tr>
<tr>
<td data-row="7" data-col="0"></td>
                  <td data-row="7" data-col="1">se = 0.078</td>
                  <td data-row="7" data-col="2">se = 0.028</td>
                </tr>
<tr>
<td data-row="8" data-col="0"></td>
                  <td data-row="8" data-col="1">[0.096, 0.416]</td>
                  <td data-row="8" data-col="2">[-0.103, 0.012]</td>
                </tr>
<tr>
<td data-row="9" data-col="0">Volume</td>
                  <td data-row="9" data-col="1"></td>
                  <td data-row="9" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="10" data-col="0"></td>
                  <td data-row="10" data-col="1"></td>
                  <td data-row="10" data-col="2">t = 17.816</td>
                </tr>
<tr>
<td data-row="11" data-col="0"></td>
                  <td data-row="11" data-col="1"></td>
                  <td data-row="11" data-col="2">se = 0.011</td>
                </tr>
<tr>
<td data-row="12" data-col="0"></td>
                  <td data-row="12" data-col="1"></td>
                  <td data-row="12" data-col="2">[0.173, 0.218]</td>
                </tr>
<tr>
<td data-row="13" data-col="0">Num.Obs.</td>
                  <td data-row="13" data-col="1">31</td>
                  <td data-row="13" data-col="2">31</td>
                </tr>
<tr>
<td data-row="14" data-col="0">R2</td>
                  <td data-row="14" data-col="1">0.270</td>
                  <td data-row="14" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="15" data-col="0">R2 Adj.</td>
                  <td data-row="15" data-col="1">0.244</td>
                  <td data-row="15" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="16" data-col="0">AIC</td>
                  <td data-row="16" data-col="1">154.1</td>
                  <td data-row="16" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="17" data-col="0">BIC</td>
                  <td data-row="17" data-col="1">158.4</td>
                  <td data-row="17" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="18" data-col="0">Log.Lik.</td>
                  <td data-row="18" data-col="1">-74.061</td>
                  <td data-row="18" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="19" data-col="0">F</td>
                  <td data-row="19" data-col="1">10.707</td>
                  <td data-row="19" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="20" data-col="0">RMSE</td>
                  <td data-row="20" data-col="1">2.64</td>
                  <td data-row="20" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb7"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># estimate</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>,</span>
<span>  statistic <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span>  estimate <span class="op">=</span> <span class="st">"{estimate} [{conf.low}, {conf.high}]"</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_ygmnstlgdrbh2vtct7xl(i, j, css_id) {
          var table = document.getElementById("tinytable_ygmnstlgdrbh2vtct7xl");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_ygmnstlgdrbh2vtct7xl(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_ygmnstlgdrbh2vtct7xl");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '11', j: 1 }, { i: '11', j: 2 },  ], css_id: 'tinytable_css_8n459mzwpdlx7w1fbs0k',}, 
          { positions: [ { i: '3', j: 2 }, { i: '3', j: 1 },  ], css_id: 'tinytable_css_ku3ck8ktztvbbv515fra',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '4', j: 2 }, { i: '5', j: 1 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '4', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '7', j: 2 }, { i: '8', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '6', j: 2 }, { i: '9', j: 2 }, { i: '10', j: 2 },  ], css_id: 'tinytable_css_1rvn8niijgo7uj587z7f',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_gzoqbej40qlag45583ls',}, 
          { positions: [ { i: '11', j: 0 },  ], css_id: 'tinytable_css_71q45nf6q5thyj94t722',}, 
          { positions: [ { i: '3', j: 0 },  ], css_id: 'tinytable_css_bchdovx2tsrzp099vs6f',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '7', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 },  ], css_id: 'tinytable_css_ktcpmbhrfjrvbtizo4es',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_jxc8b0zxoaivskr7kfkq',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_ygmnstlgdrbh2vtct7xl(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_8n459mzwpdlx7w1fbs0k, .table th.tinytable_css_8n459mzwpdlx7w1fbs0k { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_ku3ck8ktztvbbv515fra, .table th.tinytable_css_ku3ck8ktztvbbv515fra { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_1rvn8niijgo7uj587z7f, .table th.tinytable_css_1rvn8niijgo7uj587z7f { text-align: center; }
      .table td.tinytable_css_gzoqbej40qlag45583ls, .table th.tinytable_css_gzoqbej40qlag45583ls { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_71q45nf6q5thyj94t722, .table th.tinytable_css_71q45nf6q5thyj94t722 { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_bchdovx2tsrzp099vs6f, .table th.tinytable_css_bchdovx2tsrzp099vs6f { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_ktcpmbhrfjrvbtizo4es, .table th.tinytable_css_ktcpmbhrfjrvbtizo4es { text-align: left; }
      .table td.tinytable_css_jxc8b0zxoaivskr7kfkq, .table th.tinytable_css_jxc8b0zxoaivskr7kfkq { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_ygmnstlgdrbh2vtct7xl" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188 [-18.378, 6.002]</td>
                  <td data-row="1" data-col="2">10.816 [6.774, 14.858]</td>
                </tr>
<tr>
<td data-row="2" data-col="0">Height</td>
                  <td data-row="2" data-col="1">0.256 [0.096, 0.416]</td>
                  <td data-row="2" data-col="2">-0.045 [-0.103, 0.012]</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Volume</td>
                  <td data-row="3" data-col="1"></td>
                  <td data-row="3" data-col="2">0.195 [0.173, 0.218]</td>
                </tr>
<tr>
<td data-row="4" data-col="0">Num.Obs.</td>
                  <td data-row="4" data-col="1">31</td>
                  <td data-row="4" data-col="2">31</td>
                </tr>
<tr>
<td data-row="5" data-col="0">R2</td>
                  <td data-row="5" data-col="1">0.270</td>
                  <td data-row="5" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="6" data-col="0">R2 Adj.</td>
                  <td data-row="6" data-col="1">0.244</td>
                  <td data-row="6" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="7" data-col="0">AIC</td>
                  <td data-row="7" data-col="1">154.1</td>
                  <td data-row="7" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="8" data-col="0">BIC</td>
                  <td data-row="8" data-col="1">158.4</td>
                  <td data-row="8" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="9" data-col="0">Log.Lik.</td>
                  <td data-row="9" data-col="1">-74.061</td>
                  <td data-row="9" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="10" data-col="0">F</td>
                  <td data-row="10" data-col="1">10.707</td>
                  <td data-row="10" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="11" data-col="0">RMSE</td>
                  <td data-row="11" data-col="1">2.64</td>
                  <td data-row="11" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb8"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>,</span>
<span>  estimate <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html">c</a></span><span class="op">(</span></span>
<span>    <span class="st">"{estimate}{stars}"</span>,</span>
<span>    <span class="st">"{estimate} ({std.error})"</span><span class="op">)</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_q2kb3r6trbpalj0u4vz9(i, j, css_id) {
          var table = document.getElementById("tinytable_q2kb3r6trbpalj0u4vz9");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_q2kb3r6trbpalj0u4vz9(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_q2kb3r6trbpalj0u4vz9");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '14', j: 1 }, { i: '14', j: 2 },  ], css_id: 'tinytable_css_n1pxc2bueuaq284ctzd0',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_jbaog2kdxoyxgp18h4b1',}, 
          { positions: [ { i: '1', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '4', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '12', j: 2 }, { i: '2', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '10', j: 2 }, { i: '7', j: 2 }, { i: '9', j: 2 }, { i: '11', j: 2 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_ynqcbfrem3ueoconza7s',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_mgzsjcgsm4t1717z5y2l',}, 
          { positions: [ { i: '14', j: 0 },  ], css_id: 'tinytable_css_hg17sib3vzfj50iwqhge',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_55m2q93p0d4bjoef4vs9',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 },  ], css_id: 'tinytable_css_mv8t7z5txrc0a20wkopx',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_8lju2ts369dw79rmfvv3',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_q2kb3r6trbpalj0u4vz9(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_n1pxc2bueuaq284ctzd0, .table th.tinytable_css_n1pxc2bueuaq284ctzd0 { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_jbaog2kdxoyxgp18h4b1, .table th.tinytable_css_jbaog2kdxoyxgp18h4b1 { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_ynqcbfrem3ueoconza7s, .table th.tinytable_css_ynqcbfrem3ueoconza7s { text-align: center; }
      .table td.tinytable_css_mgzsjcgsm4t1717z5y2l, .table th.tinytable_css_mgzsjcgsm4t1717z5y2l { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_hg17sib3vzfj50iwqhge, .table th.tinytable_css_hg17sib3vzfj50iwqhge { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_55m2q93p0d4bjoef4vs9, .table th.tinytable_css_55m2q93p0d4bjoef4vs9 { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_mv8t7z5txrc0a20wkopx, .table th.tinytable_css_mv8t7z5txrc0a20wkopx { text-align: left; }
      .table td.tinytable_css_8lju2ts369dw79rmfvv3, .table th.tinytable_css_8lju2ts369dw79rmfvv3 { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_q2kb3r6trbpalj0u4vz9" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816 (1.973)</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(5.960)</td>
                  <td data-row="2" data-col="2">(1.973)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256**</td>
                  <td data-row="3" data-col="2">-0.045 (0.028)</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.078)</td>
                  <td data-row="4" data-col="2">(0.028)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Volume</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195 (0.011)</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(0.011)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Num.Obs.</td>
                  <td data-row="7" data-col="1">31</td>
                  <td data-row="7" data-col="2">31</td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2</td>
                  <td data-row="8" data-col="1">0.270</td>
                  <td data-row="8" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="9" data-col="0">R2 Adj.</td>
                  <td data-row="9" data-col="1">0.244</td>
                  <td data-row="9" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="10" data-col="0">AIC</td>
                  <td data-row="10" data-col="1">154.1</td>
                  <td data-row="10" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="11" data-col="0">BIC</td>
                  <td data-row="11" data-col="1">158.4</td>
                  <td data-row="11" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="12" data-col="0">Log.Lik.</td>
                  <td data-row="12" data-col="1">-74.061</td>
                  <td data-row="12" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="13" data-col="0">F</td>
                  <td data-row="13" data-col="1">10.707</td>
                  <td data-row="13" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="14" data-col="0">RMSE</td>
                  <td data-row="14" data-col="1">2.64</td>
                  <td data-row="14" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb9"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># vcov</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, vcov <span class="op">=</span> <span class="st">"robust"</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_vsf59ue78z4f4fonxhf5(i, j, css_id) {
          var table = document.getElementById("tinytable_vsf59ue78z4f4fonxhf5");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_vsf59ue78z4f4fonxhf5(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_vsf59ue78z4f4fonxhf5");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '15', j: 1 }, { i: '15', j: 2 },  ], css_id: 'tinytable_css_6t58xxnf8qp4aucgj6nn',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_ynzazxoo8lts5fbnnlp1',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '3', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '14', j: 1 }, { i: '12', j: 2 }, { i: '3', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '7', j: 2 }, { i: '4', j: 2 }, { i: '5', j: 2 }, { i: '10', j: 2 }, { i: '11', j: 2 }, { i: '8', j: 2 }, { i: '9', j: 2 }, { i: '14', j: 2 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_my45atyc1m5g2113mkvp',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_poi5v3yvb1ee9dmii7pq',}, 
          { positions: [ { i: '15', j: 0 },  ], css_id: 'tinytable_css_tawgbv695b29lrtrpu58',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_tex0um7ottrqu1s9o2oz',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '14', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 },  ], css_id: 'tinytable_css_nb2sp75e0qyq6indug3k',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_cvc6jduksrsfk5rkwi41',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_vsf59ue78z4f4fonxhf5(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_6t58xxnf8qp4aucgj6nn, .table th.tinytable_css_6t58xxnf8qp4aucgj6nn { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_ynzazxoo8lts5fbnnlp1, .table th.tinytable_css_ynzazxoo8lts5fbnnlp1 { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_my45atyc1m5g2113mkvp, .table th.tinytable_css_my45atyc1m5g2113mkvp { text-align: center; }
      .table td.tinytable_css_poi5v3yvb1ee9dmii7pq, .table th.tinytable_css_poi5v3yvb1ee9dmii7pq { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_tawgbv695b29lrtrpu58, .table th.tinytable_css_tawgbv695b29lrtrpu58 { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_tex0um7ottrqu1s9o2oz, .table th.tinytable_css_tex0um7ottrqu1s9o2oz { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_nb2sp75e0qyq6indug3k, .table th.tinytable_css_nb2sp75e0qyq6indug3k { text-align: left; }
      .table td.tinytable_css_cvc6jduksrsfk5rkwi41, .table th.tinytable_css_cvc6jduksrsfk5rkwi41 { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_vsf59ue78z4f4fonxhf5" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(6.717)</td>
                  <td data-row="2" data-col="2">(2.544)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.090)</td>
                  <td data-row="4" data-col="2">(0.035)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Volume</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(0.014)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Num.Obs.</td>
                  <td data-row="7" data-col="1">31</td>
                  <td data-row="7" data-col="2">31</td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2</td>
                  <td data-row="8" data-col="1">0.270</td>
                  <td data-row="8" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="9" data-col="0">R2 Adj.</td>
                  <td data-row="9" data-col="1">0.244</td>
                  <td data-row="9" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="10" data-col="0">AIC</td>
                  <td data-row="10" data-col="1">154.1</td>
                  <td data-row="10" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="11" data-col="0">BIC</td>
                  <td data-row="11" data-col="1">158.4</td>
                  <td data-row="11" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="12" data-col="0">Log.Lik.</td>
                  <td data-row="12" data-col="1">-74.061</td>
                  <td data-row="12" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="13" data-col="0">F</td>
                  <td data-row="13" data-col="1">8.021</td>
                  <td data-row="13" data-col="2">100.427</td>
                </tr>
<tr>
<td data-row="14" data-col="0">RMSE</td>
                  <td data-row="14" data-col="1">2.64</td>
                  <td data-row="14" data-col="2">0.75</td>
                </tr>
<tr>
<td data-row="15" data-col="0">Std.Errors</td>
                  <td data-row="15" data-col="1">HC3</td>
                  <td data-row="15" data-col="2">HC3</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb10"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, vcov <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html">list</a></span><span class="op">(</span><span class="st">"classical"</span>, <span class="st">"stata"</span><span class="op">)</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_6w7sxkh5i3k3m1nb2xok(i, j, css_id) {
          var table = document.getElementById("tinytable_6w7sxkh5i3k3m1nb2xok");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_6w7sxkh5i3k3m1nb2xok(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_6w7sxkh5i3k3m1nb2xok");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '15', j: 1 }, { i: '15', j: 2 },  ], css_id: 'tinytable_css_qrcts8gbgdcpf3nwftgo',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_w4ug2jnzfgwlrswcg6v4',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '3', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '14', j: 1 }, { i: '12', j: 2 }, { i: '3', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '7', j: 2 }, { i: '4', j: 2 }, { i: '5', j: 2 }, { i: '10', j: 2 }, { i: '11', j: 2 }, { i: '8', j: 2 }, { i: '9', j: 2 }, { i: '14', j: 2 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_zbhhqflxf7jz5lhx2hx1',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_9gnfevv2aozxvohcpizs',}, 
          { positions: [ { i: '15', j: 0 },  ], css_id: 'tinytable_css_1oszidvyvdr941j5wglz',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_v943bneyvesqwbavt6fw',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '14', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 },  ], css_id: 'tinytable_css_gurf3cjyy0t0r4eq1dvu',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_g235tu28pgdfpxhqktr6',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_6w7sxkh5i3k3m1nb2xok(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_qrcts8gbgdcpf3nwftgo, .table th.tinytable_css_qrcts8gbgdcpf3nwftgo { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_w4ug2jnzfgwlrswcg6v4, .table th.tinytable_css_w4ug2jnzfgwlrswcg6v4 { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_zbhhqflxf7jz5lhx2hx1, .table th.tinytable_css_zbhhqflxf7jz5lhx2hx1 { text-align: center; }
      .table td.tinytable_css_9gnfevv2aozxvohcpizs, .table th.tinytable_css_9gnfevv2aozxvohcpizs { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_1oszidvyvdr941j5wglz, .table th.tinytable_css_1oszidvyvdr941j5wglz { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_v943bneyvesqwbavt6fw, .table th.tinytable_css_v943bneyvesqwbavt6fw { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_gurf3cjyy0t0r4eq1dvu, .table th.tinytable_css_gurf3cjyy0t0r4eq1dvu { text-align: left; }
      .table td.tinytable_css_g235tu28pgdfpxhqktr6, .table th.tinytable_css_g235tu28pgdfpxhqktr6 { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_6w7sxkh5i3k3m1nb2xok" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(5.960)</td>
                  <td data-row="2" data-col="2">(2.261)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.078)</td>
                  <td data-row="4" data-col="2">(0.031)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Volume</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(0.012)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Num.Obs.</td>
                  <td data-row="7" data-col="1">31</td>
                  <td data-row="7" data-col="2">31</td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2</td>
                  <td data-row="8" data-col="1">0.270</td>
                  <td data-row="8" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="9" data-col="0">R2 Adj.</td>
                  <td data-row="9" data-col="1">0.244</td>
                  <td data-row="9" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="10" data-col="0">AIC</td>
                  <td data-row="10" data-col="1">154.1</td>
                  <td data-row="10" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="11" data-col="0">BIC</td>
                  <td data-row="11" data-col="1">158.4</td>
                  <td data-row="11" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="12" data-col="0">Log.Lik.</td>
                  <td data-row="12" data-col="1">-74.061</td>
                  <td data-row="12" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="13" data-col="0">F</td>
                  <td data-row="13" data-col="1">10.707</td>
                  <td data-row="13" data-col="2">151.435</td>
                </tr>
<tr>
<td data-row="14" data-col="0">RMSE</td>
                  <td data-row="14" data-col="1">2.64</td>
                  <td data-row="14" data-col="2">0.75</td>
                </tr>
<tr>
<td data-row="15" data-col="0">Std.Errors</td>
                  <td data-row="15" data-col="1">IID</td>
                  <td data-row="15" data-col="2">HC1</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb11"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, vcov <span class="op">=</span> <span class="fu">sandwich</span><span class="fu">::</span><span class="va"><a href="https://sandwich.R-Forge.R-project.org/reference/vcovHC.html">vcovHC</a></span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_hc4x1xtjycslep4u9s8t(i, j, css_id) {
          var table = document.getElementById("tinytable_hc4x1xtjycslep4u9s8t");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_hc4x1xtjycslep4u9s8t(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_hc4x1xtjycslep4u9s8t");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '14', j: 1 }, { i: '14', j: 2 },  ], css_id: 'tinytable_css_iaho1j5or6zeneyxun5j',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_vn92vz0zz7kviww3wbr9',}, 
          { positions: [ { i: '1', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '4', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '12', j: 2 }, { i: '2', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '10', j: 2 }, { i: '7', j: 2 }, { i: '9', j: 2 }, { i: '11', j: 2 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_1ioztteiu0u8aa7wokef',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_hhbrp4liu3qgk8m9ufal',}, 
          { positions: [ { i: '14', j: 0 },  ], css_id: 'tinytable_css_553vsag7tv9m9err0x0u',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_fo1lrkt4eazf3fldg1wy',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 },  ], css_id: 'tinytable_css_0bxrp2rsx9vtsixp6zth',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_7i30qoyrvxl824j0ryda',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_hc4x1xtjycslep4u9s8t(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_iaho1j5or6zeneyxun5j, .table th.tinytable_css_iaho1j5or6zeneyxun5j { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_vn92vz0zz7kviww3wbr9, .table th.tinytable_css_vn92vz0zz7kviww3wbr9 { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_1ioztteiu0u8aa7wokef, .table th.tinytable_css_1ioztteiu0u8aa7wokef { text-align: center; }
      .table td.tinytable_css_hhbrp4liu3qgk8m9ufal, .table th.tinytable_css_hhbrp4liu3qgk8m9ufal { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_553vsag7tv9m9err0x0u, .table th.tinytable_css_553vsag7tv9m9err0x0u { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_fo1lrkt4eazf3fldg1wy, .table th.tinytable_css_fo1lrkt4eazf3fldg1wy { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_0bxrp2rsx9vtsixp6zth, .table th.tinytable_css_0bxrp2rsx9vtsixp6zth { text-align: left; }
      .table td.tinytable_css_7i30qoyrvxl824j0ryda, .table th.tinytable_css_7i30qoyrvxl824j0ryda { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_hc4x1xtjycslep4u9s8t" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(6.717)</td>
                  <td data-row="2" data-col="2">(2.544)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.090)</td>
                  <td data-row="4" data-col="2">(0.035)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Volume</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(0.014)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Num.Obs.</td>
                  <td data-row="7" data-col="1">31</td>
                  <td data-row="7" data-col="2">31</td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2</td>
                  <td data-row="8" data-col="1">0.270</td>
                  <td data-row="8" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="9" data-col="0">R2 Adj.</td>
                  <td data-row="9" data-col="1">0.244</td>
                  <td data-row="9" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="10" data-col="0">AIC</td>
                  <td data-row="10" data-col="1">154.1</td>
                  <td data-row="10" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="11" data-col="0">BIC</td>
                  <td data-row="11" data-col="1">158.4</td>
                  <td data-row="11" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="12" data-col="0">Log.Lik.</td>
                  <td data-row="12" data-col="1">-74.061</td>
                  <td data-row="12" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="13" data-col="0">RMSE</td>
                  <td data-row="13" data-col="1">2.64</td>
                  <td data-row="13" data-col="2">0.75</td>
                </tr>
<tr>
<td data-row="14" data-col="0">Std.Errors</td>
                  <td data-row="14" data-col="1">Custom</td>
                  <td data-row="14" data-col="2">Custom</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb12"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>,</span>
<span>  vcov <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html">list</a></span><span class="op">(</span><span class="fu">stats</span><span class="fu">::</span><span class="va"><a href="https://rdrr.io/r/stats/vcov.html">vcov</a></span>, <span class="fu">sandwich</span><span class="fu">::</span><span class="va"><a href="https://sandwich.R-Forge.R-project.org/reference/vcovHC.html">vcovHC</a></span><span class="op">)</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_7djp7mcl74h6rytgjazl(i, j, css_id) {
          var table = document.getElementById("tinytable_7djp7mcl74h6rytgjazl");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_7djp7mcl74h6rytgjazl(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_7djp7mcl74h6rytgjazl");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '14', j: 1 }, { i: '14', j: 2 },  ], css_id: 'tinytable_css_zb560d1p2h2wceoa3lp1',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_cyrraxt3sq1p2s2f9zuj',}, 
          { positions: [ { i: '1', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '4', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '12', j: 2 }, { i: '2', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '10', j: 2 }, { i: '7', j: 2 }, { i: '9', j: 2 }, { i: '11', j: 2 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_5wil0wd3qw9dwo6k7qse',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_7gqnh16dtsexrgfrevwp',}, 
          { positions: [ { i: '14', j: 0 },  ], css_id: 'tinytable_css_n7acl254rdjwmk4k2iws',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_abfck5o1fbxonlav976j',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 },  ], css_id: 'tinytable_css_qp8883r1eziqzf8s362d',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_zb7s52zq76eb4rshmbhl',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_7djp7mcl74h6rytgjazl(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_zb560d1p2h2wceoa3lp1, .table th.tinytable_css_zb560d1p2h2wceoa3lp1 { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_cyrraxt3sq1p2s2f9zuj, .table th.tinytable_css_cyrraxt3sq1p2s2f9zuj { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_5wil0wd3qw9dwo6k7qse, .table th.tinytable_css_5wil0wd3qw9dwo6k7qse { text-align: center; }
      .table td.tinytable_css_7gqnh16dtsexrgfrevwp, .table th.tinytable_css_7gqnh16dtsexrgfrevwp { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_n7acl254rdjwmk4k2iws, .table th.tinytable_css_n7acl254rdjwmk4k2iws { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_abfck5o1fbxonlav976j, .table th.tinytable_css_abfck5o1fbxonlav976j { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_qp8883r1eziqzf8s362d, .table th.tinytable_css_qp8883r1eziqzf8s362d { text-align: left; }
      .table td.tinytable_css_zb7s52zq76eb4rshmbhl, .table th.tinytable_css_zb7s52zq76eb4rshmbhl { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_7djp7mcl74h6rytgjazl" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(5.960)</td>
                  <td data-row="2" data-col="2">(2.544)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.078)</td>
                  <td data-row="4" data-col="2">(0.035)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Volume</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(0.014)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Num.Obs.</td>
                  <td data-row="7" data-col="1">31</td>
                  <td data-row="7" data-col="2">31</td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2</td>
                  <td data-row="8" data-col="1">0.270</td>
                  <td data-row="8" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="9" data-col="0">R2 Adj.</td>
                  <td data-row="9" data-col="1">0.244</td>
                  <td data-row="9" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="10" data-col="0">AIC</td>
                  <td data-row="10" data-col="1">154.1</td>
                  <td data-row="10" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="11" data-col="0">BIC</td>
                  <td data-row="11" data-col="1">158.4</td>
                  <td data-row="11" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="12" data-col="0">Log.Lik.</td>
                  <td data-row="12" data-col="1">-74.061</td>
                  <td data-row="12" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="13" data-col="0">RMSE</td>
                  <td data-row="13" data-col="1">2.64</td>
                  <td data-row="13" data-col="2">0.75</td>
                </tr>
<tr>
<td data-row="14" data-col="0">Std.Errors</td>
                  <td data-row="14" data-col="1">Custom</td>
                  <td data-row="14" data-col="2">Custom</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb13"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>,</span>
<span>  vcov <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html">list</a></span><span class="op">(</span></span>
<span>    <span class="fu"><a href="https://rdrr.io/r/base/c.html">c</a></span><span class="op">(</span><span class="st">"(Intercept)"</span> <span class="op">=</span> <span class="st">""</span>, <span class="st">"Height"</span> <span class="op">=</span> <span class="st">"!"</span><span class="op">)</span>,</span>
<span>    <span class="fu"><a href="https://rdrr.io/r/base/c.html">c</a></span><span class="op">(</span><span class="st">"(Intercept)"</span> <span class="op">=</span> <span class="st">""</span>, <span class="st">"Height"</span> <span class="op">=</span> <span class="st">"!"</span>, <span class="st">"Volume"</span> <span class="op">=</span> <span class="st">"!!"</span><span class="op">)</span><span class="op">)</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_nv17au3wrjrln5l7i713(i, j, css_id) {
          var table = document.getElementById("tinytable_nv17au3wrjrln5l7i713");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_nv17au3wrjrln5l7i713(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_nv17au3wrjrln5l7i713");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '13', j: 1 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_li8h02t88ivbc3wqmrfn',}, 
          { positions: [ { i: '5', j: 1 }, { i: '5', j: 2 },  ], css_id: 'tinytable_css_eeiv4gpwhpehcd81uxl3',}, 
          { positions: [ { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '4', j: 2 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '12', j: 2 }, { i: '1', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '8', j: 2 }, { i: '9', j: 2 }, { i: '6', j: 2 }, { i: '7', j: 2 }, { i: '10', j: 2 }, { i: '11', j: 2 },  ], css_id: 'tinytable_css_l43xxsxu9zcn0k0tnugl',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_kenpg6t3ws0ppj6d2k7c',}, 
          { positions: [ { i: '13', j: 0 },  ], css_id: 'tinytable_css_n2efdwnnykwb1uclp710',}, 
          { positions: [ { i: '5', j: 0 },  ], css_id: 'tinytable_css_41gc90d84ufn5sqju4j6',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '9', j: 0 }, { i: '6', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 },  ], css_id: 'tinytable_css_i8f3jti6qr3n34ds5onu',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_bi1l4i87153u5ri0w5px',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_nv17au3wrjrln5l7i713(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_li8h02t88ivbc3wqmrfn, .table th.tinytable_css_li8h02t88ivbc3wqmrfn { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_eeiv4gpwhpehcd81uxl3, .table th.tinytable_css_eeiv4gpwhpehcd81uxl3 { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_l43xxsxu9zcn0k0tnugl, .table th.tinytable_css_l43xxsxu9zcn0k0tnugl { text-align: center; }
      .table td.tinytable_css_kenpg6t3ws0ppj6d2k7c, .table th.tinytable_css_kenpg6t3ws0ppj6d2k7c { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_n2efdwnnykwb1uclp710, .table th.tinytable_css_n2efdwnnykwb1uclp710 { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_41gc90d84ufn5sqju4j6, .table th.tinytable_css_41gc90d84ufn5sqju4j6 { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_i8f3jti6qr3n34ds5onu, .table th.tinytable_css_i8f3jti6qr3n34ds5onu { text-align: left; }
      .table td.tinytable_css_bi1l4i87153u5ri0w5px, .table th.tinytable_css_bi1l4i87153u5ri0w5px { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_nv17au3wrjrln5l7i713" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0">Height</td>
                  <td data-row="2" data-col="1">0.256</td>
                  <td data-row="2" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="3" data-col="0"></td>
                  <td data-row="3" data-col="1">!</td>
                  <td data-row="3" data-col="2">!</td>
                </tr>
<tr>
<td data-row="4" data-col="0">Volume</td>
                  <td data-row="4" data-col="1"></td>
                  <td data-row="4" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="5" data-col="0"></td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">!!</td>
                </tr>
<tr>
<td data-row="6" data-col="0">Num.Obs.</td>
                  <td data-row="6" data-col="1">31</td>
                  <td data-row="6" data-col="2">31</td>
                </tr>
<tr>
<td data-row="7" data-col="0">R2</td>
                  <td data-row="7" data-col="1">0.270</td>
                  <td data-row="7" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2 Adj.</td>
                  <td data-row="8" data-col="1">0.244</td>
                  <td data-row="8" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="9" data-col="0">AIC</td>
                  <td data-row="9" data-col="1">154.1</td>
                  <td data-row="9" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="10" data-col="0">BIC</td>
                  <td data-row="10" data-col="1">158.4</td>
                  <td data-row="10" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="11" data-col="0">Log.Lik.</td>
                  <td data-row="11" data-col="1">-74.061</td>
                  <td data-row="11" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="12" data-col="0">RMSE</td>
                  <td data-row="12" data-col="1">2.64</td>
                  <td data-row="12" data-col="2">0.75</td>
                </tr>
<tr>
<td data-row="13" data-col="0">Std.Errors</td>
                  <td data-row="13" data-col="1">Custom</td>
                  <td data-row="13" data-col="2">Custom</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb14"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># vcov with custom names</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span></span>
<span>  <span class="va">models</span>,</span>
<span>  vcov <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html">list</a></span><span class="op">(</span></span>
<span>    <span class="st">"Stata Corp"</span> <span class="op">=</span> <span class="st">"stata"</span>,</span>
<span>    <span class="st">"Newey Lewis &amp; the News"</span> <span class="op">=</span> <span class="st">"NeweyWest"</span><span class="op">)</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_eii6j742lcc9d61o0dko(i, j, css_id) {
          var table = document.getElementById("tinytable_eii6j742lcc9d61o0dko");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_eii6j742lcc9d61o0dko(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_eii6j742lcc9d61o0dko");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '14', j: 1 }, { i: '14', j: 2 },  ], css_id: 'tinytable_css_ywc1gb2ey1w6dipi3r2r',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_ynxlhevanfeowsjghaa5',}, 
          { positions: [ { i: '1', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '4', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '12', j: 2 }, { i: '2', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '10', j: 2 }, { i: '7', j: 2 }, { i: '9', j: 2 }, { i: '11', j: 2 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_pf5i18hpwld2m1jtx6cf',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_xrztovdaeyily366qsle',}, 
          { positions: [ { i: '14', j: 0 },  ], css_id: 'tinytable_css_utv3m4lhnkq6cb683y80',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_wif7okd9c1uym34ltbdh',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 },  ], css_id: 'tinytable_css_rhbpw33uzkmffrevqmvz',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_l09pvo7e7aze1xnqopal',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_eii6j742lcc9d61o0dko(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_ywc1gb2ey1w6dipi3r2r, .table th.tinytable_css_ywc1gb2ey1w6dipi3r2r { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_ynxlhevanfeowsjghaa5, .table th.tinytable_css_ynxlhevanfeowsjghaa5 { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_pf5i18hpwld2m1jtx6cf, .table th.tinytable_css_pf5i18hpwld2m1jtx6cf { text-align: center; }
      .table td.tinytable_css_xrztovdaeyily366qsle, .table th.tinytable_css_xrztovdaeyily366qsle { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_utv3m4lhnkq6cb683y80, .table th.tinytable_css_utv3m4lhnkq6cb683y80 { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_wif7okd9c1uym34ltbdh, .table th.tinytable_css_wif7okd9c1uym34ltbdh { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_rhbpw33uzkmffrevqmvz, .table th.tinytable_css_rhbpw33uzkmffrevqmvz { text-align: left; }
      .table td.tinytable_css_l09pvo7e7aze1xnqopal, .table th.tinytable_css_l09pvo7e7aze1xnqopal { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_eii6j742lcc9d61o0dko" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(6.171)</td>
                  <td data-row="2" data-col="2">(1.839)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.083)</td>
                  <td data-row="4" data-col="2">(0.022)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Volume</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(0.007)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Num.Obs.</td>
                  <td data-row="7" data-col="1">31</td>
                  <td data-row="7" data-col="2">31</td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2</td>
                  <td data-row="8" data-col="1">0.270</td>
                  <td data-row="8" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="9" data-col="0">R2 Adj.</td>
                  <td data-row="9" data-col="1">0.244</td>
                  <td data-row="9" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="10" data-col="0">AIC</td>
                  <td data-row="10" data-col="1">154.1</td>
                  <td data-row="10" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="11" data-col="0">BIC</td>
                  <td data-row="11" data-col="1">158.4</td>
                  <td data-row="11" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="12" data-col="0">Log.Lik.</td>
                  <td data-row="12" data-col="1">-74.061</td>
                  <td data-row="12" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="13" data-col="0">RMSE</td>
                  <td data-row="13" data-col="1">2.64</td>
                  <td data-row="13" data-col="2">0.75</td>
                </tr>
<tr>
<td data-row="14" data-col="0">Std.Errors</td>
                  <td data-row="14" data-col="1">Stata Corp</td>
                  <td data-row="14" data-col="2">Newey Lewis &amp; the News</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb15"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># fmt</span></span>
<span><span class="va">mod</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/stats/lm.html">lm</a></span><span class="op">(</span><span class="va">mpg</span> <span class="op">~</span> <span class="va">hp</span> <span class="op">+</span> <span class="va">drat</span> <span class="op">+</span> <span class="va">qsec</span>, data <span class="op">=</span> <span class="va">mtcars</span><span class="op">)</span></span>
<span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">mod</span>, fmt <span class="op">=</span> <span class="fl">3</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_6ka59yzxhnd4muise53i(i, j, css_id) {
          var table = document.getElementById("tinytable_6ka59yzxhnd4muise53i");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_6ka59yzxhnd4muise53i(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_6ka59yzxhnd4muise53i");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '16', j: 1 },  ], css_id: 'tinytable_css_82qa3e75b59ijwduzwvz',}, 
          { positions: [ { i: '8', j: 1 },  ], css_id: 'tinytable_css_nw2rfxse31lzwush8loi',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '12', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '13', j: 1 }, { i: '14', j: 1 }, { i: '15', j: 1 },  ], css_id: 'tinytable_css_sr1iq8lefad5syifr8zz',}, 
          { positions: [ { i: '0', j: 1 },  ], css_id: 'tinytable_css_qzck0dyza2ci7g7q0n4s',}, 
          { positions: [ { i: '16', j: 0 },  ], css_id: 'tinytable_css_icqikc91suoauwdo25pw',}, 
          { positions: [ { i: '8', j: 0 },  ], css_id: 'tinytable_css_lcacwfbmz8b343i4o1xk',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '7', j: 0 }, { i: '12', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 }, { i: '13', j: 0 }, { i: '14', j: 0 }, { i: '15', j: 0 },  ], css_id: 'tinytable_css_j5ceegvo7oe294nmimyd',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_ku9m5o6ffrpwxqnteqpe',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_6ka59yzxhnd4muise53i(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_82qa3e75b59ijwduzwvz, .table th.tinytable_css_82qa3e75b59ijwduzwvz { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_nw2rfxse31lzwush8loi, .table th.tinytable_css_nw2rfxse31lzwush8loi { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_sr1iq8lefad5syifr8zz, .table th.tinytable_css_sr1iq8lefad5syifr8zz { text-align: center; }
      .table td.tinytable_css_qzck0dyza2ci7g7q0n4s, .table th.tinytable_css_qzck0dyza2ci7g7q0n4s { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_icqikc91suoauwdo25pw, .table th.tinytable_css_icqikc91suoauwdo25pw { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_lcacwfbmz8b343i4o1xk, .table th.tinytable_css_lcacwfbmz8b343i4o1xk { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_j5ceegvo7oe294nmimyd, .table th.tinytable_css_j5ceegvo7oe294nmimyd { text-align: left; }
      .table td.tinytable_css_ku9m5o6ffrpwxqnteqpe, .table th.tinytable_css_ku9m5o6ffrpwxqnteqpe { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_6ka59yzxhnd4muise53i" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">(1)</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">17.737</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(13.020)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">hp</td>
                  <td data-row="3" data-col="1">-0.058</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.014)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">drat</td>
                  <td data-row="5" data-col="1">4.429</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1">(1.292)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">qsec</td>
                  <td data-row="7" data-col="1">-0.284</td>
                </tr>
<tr>
<td data-row="8" data-col="0"></td>
                  <td data-row="8" data-col="1">(0.489)</td>
                </tr>
<tr>
<td data-row="9" data-col="0">Num.Obs.</td>
                  <td data-row="9" data-col="1">32</td>
                </tr>
<tr>
<td data-row="10" data-col="0">R2</td>
                  <td data-row="10" data-col="1">0.744</td>
                </tr>
<tr>
<td data-row="11" data-col="0">R2 Adj.</td>
                  <td data-row="11" data-col="1">0.717</td>
                </tr>
<tr>
<td data-row="12" data-col="0">AIC</td>
                  <td data-row="12" data-col="1">171.1</td>
                </tr>
<tr>
<td data-row="13" data-col="0">BIC</td>
                  <td data-row="13" data-col="1">178.5</td>
                </tr>
<tr>
<td data-row="14" data-col="0">Log.Lik.</td>
                  <td data-row="14" data-col="1">-80.561</td>
                </tr>
<tr>
<td data-row="15" data-col="0">F</td>
                  <td data-row="15" data-col="1">27.161</td>
                </tr>
<tr>
<td data-row="16" data-col="0">RMSE</td>
                  <td data-row="16" data-col="1">3.00</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb16"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">mod</span>, fmt <span class="op">=</span> <span class="fu"><a href="https://modelsummary.com/man/fmt_significant.html">fmt_significant</a></span><span class="op">(</span><span class="fl">3</span><span class="op">)</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_cvninubi98tzfrimj3fi(i, j, css_id) {
          var table = document.getElementById("tinytable_cvninubi98tzfrimj3fi");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_cvninubi98tzfrimj3fi(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_cvninubi98tzfrimj3fi");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '16', j: 1 },  ], css_id: 'tinytable_css_t09iyee3k43mcua7bsu4',}, 
          { positions: [ { i: '8', j: 1 },  ], css_id: 'tinytable_css_f5noqkj8zuqp9cryq701',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '12', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '13', j: 1 }, { i: '14', j: 1 }, { i: '15', j: 1 },  ], css_id: 'tinytable_css_pvsgoq78jd3unsjtvmmp',}, 
          { positions: [ { i: '0', j: 1 },  ], css_id: 'tinytable_css_5p0gfqbo4ycqdfih4yhv',}, 
          { positions: [ { i: '16', j: 0 },  ], css_id: 'tinytable_css_dg0hpahyhxui1dbh7vhk',}, 
          { positions: [ { i: '8', j: 0 },  ], css_id: 'tinytable_css_ul1yagmamsi6l50dfh57',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '7', j: 0 }, { i: '12', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 }, { i: '13', j: 0 }, { i: '14', j: 0 }, { i: '15', j: 0 },  ], css_id: 'tinytable_css_qiarxxr0dlnwwytp8u1g',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_osrcaweowbd4t3tu5gwq',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_cvninubi98tzfrimj3fi(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_t09iyee3k43mcua7bsu4, .table th.tinytable_css_t09iyee3k43mcua7bsu4 { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_f5noqkj8zuqp9cryq701, .table th.tinytable_css_f5noqkj8zuqp9cryq701 { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_pvsgoq78jd3unsjtvmmp, .table th.tinytable_css_pvsgoq78jd3unsjtvmmp { text-align: center; }
      .table td.tinytable_css_5p0gfqbo4ycqdfih4yhv, .table th.tinytable_css_5p0gfqbo4ycqdfih4yhv { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_dg0hpahyhxui1dbh7vhk, .table th.tinytable_css_dg0hpahyhxui1dbh7vhk { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_ul1yagmamsi6l50dfh57, .table th.tinytable_css_ul1yagmamsi6l50dfh57 { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_qiarxxr0dlnwwytp8u1g, .table th.tinytable_css_qiarxxr0dlnwwytp8u1g { text-align: left; }
      .table td.tinytable_css_osrcaweowbd4t3tu5gwq, .table th.tinytable_css_osrcaweowbd4t3tu5gwq { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_cvninubi98tzfrimj3fi" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">(1)</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">17.7</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(13.0)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">hp</td>
                  <td data-row="3" data-col="1">-0.0580</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.0142)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">drat</td>
                  <td data-row="5" data-col="1">4.43</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1">(1.29)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">qsec</td>
                  <td data-row="7" data-col="1">-0.284</td>
                </tr>
<tr>
<td data-row="8" data-col="0"></td>
                  <td data-row="8" data-col="1">(0.489)</td>
                </tr>
<tr>
<td data-row="9" data-col="0">Num.Obs.</td>
                  <td data-row="9" data-col="1">32</td>
                </tr>
<tr>
<td data-row="10" data-col="0">R2</td>
                  <td data-row="10" data-col="1">0.744</td>
                </tr>
<tr>
<td data-row="11" data-col="0">R2 Adj.</td>
                  <td data-row="11" data-col="1">0.717</td>
                </tr>
<tr>
<td data-row="12" data-col="0">AIC</td>
                  <td data-row="12" data-col="1">171.1</td>
                </tr>
<tr>
<td data-row="13" data-col="0">BIC</td>
                  <td data-row="13" data-col="1">178.5</td>
                </tr>
<tr>
<td data-row="14" data-col="0">Log.Lik.</td>
                  <td data-row="14" data-col="1">-80.561</td>
                </tr>
<tr>
<td data-row="15" data-col="0">F</td>
                  <td data-row="15" data-col="1">27.161</td>
                </tr>
<tr>
<td data-row="16" data-col="0">RMSE</td>
                  <td data-row="16" data-col="1">3.00</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb17"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">mod</span>, fmt <span class="op">=</span> <span class="cn">NULL</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_jryovx1d5c1ffsjhwr4e(i, j, css_id) {
          var table = document.getElementById("tinytable_jryovx1d5c1ffsjhwr4e");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_jryovx1d5c1ffsjhwr4e(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_jryovx1d5c1ffsjhwr4e");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '16', j: 1 },  ], css_id: 'tinytable_css_pzgvi3tw6jouvg8qphmw',}, 
          { positions: [ { i: '8', j: 1 },  ], css_id: 'tinytable_css_6qdujd2t61jmevxuhtsc',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '12', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '13', j: 1 }, { i: '14', j: 1 }, { i: '15', j: 1 },  ], css_id: 'tinytable_css_axud7xau9iv3uiej7gbx',}, 
          { positions: [ { i: '0', j: 1 },  ], css_id: 'tinytable_css_xg1mkeg0anx3cnub97bm',}, 
          { positions: [ { i: '16', j: 0 },  ], css_id: 'tinytable_css_qrord60zpg1kinq0lidg',}, 
          { positions: [ { i: '8', j: 0 },  ], css_id: 'tinytable_css_qwuv69d3110fw5f2t375',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '7', j: 0 }, { i: '12', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 }, { i: '13', j: 0 }, { i: '14', j: 0 }, { i: '15', j: 0 },  ], css_id: 'tinytable_css_ecc7l7ymvxxdph5l2nl1',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_i6le55rm9hsw86tfs4df',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_jryovx1d5c1ffsjhwr4e(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_pzgvi3tw6jouvg8qphmw, .table th.tinytable_css_pzgvi3tw6jouvg8qphmw { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_6qdujd2t61jmevxuhtsc, .table th.tinytable_css_6qdujd2t61jmevxuhtsc { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_axud7xau9iv3uiej7gbx, .table th.tinytable_css_axud7xau9iv3uiej7gbx { text-align: center; }
      .table td.tinytable_css_xg1mkeg0anx3cnub97bm, .table th.tinytable_css_xg1mkeg0anx3cnub97bm { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_qrord60zpg1kinq0lidg, .table th.tinytable_css_qrord60zpg1kinq0lidg { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_qwuv69d3110fw5f2t375, .table th.tinytable_css_qwuv69d3110fw5f2t375 { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_ecc7l7ymvxxdph5l2nl1, .table th.tinytable_css_ecc7l7ymvxxdph5l2nl1 { text-align: left; }
      .table td.tinytable_css_i6le55rm9hsw86tfs4df, .table th.tinytable_css_i6le55rm9hsw86tfs4df { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_jryovx1d5c1ffsjhwr4e" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">(1)</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">17.7366200480466</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(13.0197907534221)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">hp</td>
                  <td data-row="3" data-col="1">-0.057972987581075</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.014208609097443)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">drat</td>
                  <td data-row="5" data-col="1">4.42875344653986</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1">(1.29169225236228)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">qsec</td>
                  <td data-row="7" data-col="1">-0.284074290906574</td>
                </tr>
<tr>
<td data-row="8" data-col="0"></td>
                  <td data-row="8" data-col="1">(0.489229280152)</td>
                </tr>
<tr>
<td data-row="9" data-col="0">Num.Obs.</td>
                  <td data-row="9" data-col="1">32</td>
                </tr>
<tr>
<td data-row="10" data-col="0">R2</td>
                  <td data-row="10" data-col="1">0.744</td>
                </tr>
<tr>
<td data-row="11" data-col="0">R2 Adj.</td>
                  <td data-row="11" data-col="1">0.717</td>
                </tr>
<tr>
<td data-row="12" data-col="0">AIC</td>
                  <td data-row="12" data-col="1">171.1</td>
                </tr>
<tr>
<td data-row="13" data-col="0">BIC</td>
                  <td data-row="13" data-col="1">178.5</td>
                </tr>
<tr>
<td data-row="14" data-col="0">Log.Lik.</td>
                  <td data-row="14" data-col="1">-80.561</td>
                </tr>
<tr>
<td data-row="15" data-col="0">F</td>
                  <td data-row="15" data-col="1">27.161</td>
                </tr>
<tr>
<td data-row="16" data-col="0">RMSE</td>
                  <td data-row="16" data-col="1">3.00</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb18"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">mod</span>, fmt <span class="op">=</span> <span class="fu"><a href="https://modelsummary.com/man/fmt_decimal.html">fmt_decimal</a></span><span class="op">(</span><span class="fl">4</span><span class="op">)</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_enxoxq3i38d66y0p5zei(i, j, css_id) {
          var table = document.getElementById("tinytable_enxoxq3i38d66y0p5zei");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_enxoxq3i38d66y0p5zei(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_enxoxq3i38d66y0p5zei");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '16', j: 1 },  ], css_id: 'tinytable_css_19jp9hq1ox5ao31izziy',}, 
          { positions: [ { i: '8', j: 1 },  ], css_id: 'tinytable_css_nb48b3l1o22jhe5kqq3l',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '12', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '13', j: 1 }, { i: '14', j: 1 }, { i: '15', j: 1 },  ], css_id: 'tinytable_css_w0y4l46f4hdbptaw8ajc',}, 
          { positions: [ { i: '0', j: 1 },  ], css_id: 'tinytable_css_c88evka888mkgggzel9b',}, 
          { positions: [ { i: '16', j: 0 },  ], css_id: 'tinytable_css_rkxl14rj13k7an1kq4i7',}, 
          { positions: [ { i: '8', j: 0 },  ], css_id: 'tinytable_css_5c06anc0pwefhgfuql7z',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '7', j: 0 }, { i: '12', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 }, { i: '13', j: 0 }, { i: '14', j: 0 }, { i: '15', j: 0 },  ], css_id: 'tinytable_css_ydhgtmcs1t089f7tb0d9',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_ts0h7c4xymsnoqenh8fy',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_enxoxq3i38d66y0p5zei(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_19jp9hq1ox5ao31izziy, .table th.tinytable_css_19jp9hq1ox5ao31izziy { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_nb48b3l1o22jhe5kqq3l, .table th.tinytable_css_nb48b3l1o22jhe5kqq3l { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_w0y4l46f4hdbptaw8ajc, .table th.tinytable_css_w0y4l46f4hdbptaw8ajc { text-align: center; }
      .table td.tinytable_css_c88evka888mkgggzel9b, .table th.tinytable_css_c88evka888mkgggzel9b { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_rkxl14rj13k7an1kq4i7, .table th.tinytable_css_rkxl14rj13k7an1kq4i7 { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_5c06anc0pwefhgfuql7z, .table th.tinytable_css_5c06anc0pwefhgfuql7z { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_ydhgtmcs1t089f7tb0d9, .table th.tinytable_css_ydhgtmcs1t089f7tb0d9 { text-align: left; }
      .table td.tinytable_css_ts0h7c4xymsnoqenh8fy, .table th.tinytable_css_ts0h7c4xymsnoqenh8fy { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_enxoxq3i38d66y0p5zei" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">(1)</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">17.7366</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(13.0198)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">hp</td>
                  <td data-row="3" data-col="1">-0.0580</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.0142)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">drat</td>
                  <td data-row="5" data-col="1">4.4288</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1">(1.2917)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">qsec</td>
                  <td data-row="7" data-col="1">-0.2841</td>
                </tr>
<tr>
<td data-row="8" data-col="0"></td>
                  <td data-row="8" data-col="1">(0.4892)</td>
                </tr>
<tr>
<td data-row="9" data-col="0">Num.Obs.</td>
                  <td data-row="9" data-col="1">32</td>
                </tr>
<tr>
<td data-row="10" data-col="0">R2</td>
                  <td data-row="10" data-col="1">0.744</td>
                </tr>
<tr>
<td data-row="11" data-col="0">R2 Adj.</td>
                  <td data-row="11" data-col="1">0.717</td>
                </tr>
<tr>
<td data-row="12" data-col="0">AIC</td>
                  <td data-row="12" data-col="1">171.1</td>
                </tr>
<tr>
<td data-row="13" data-col="0">BIC</td>
                  <td data-row="13" data-col="1">178.5</td>
                </tr>
<tr>
<td data-row="14" data-col="0">Log.Lik.</td>
                  <td data-row="14" data-col="1">-80.561</td>
                </tr>
<tr>
<td data-row="15" data-col="0">F</td>
                  <td data-row="15" data-col="1">27.161</td>
                </tr>
<tr>
<td data-row="16" data-col="0">RMSE</td>
                  <td data-row="16" data-col="1">3.00</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb19"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">mod</span>, fmt <span class="op">=</span> <span class="fu"><a href="https://modelsummary.com/man/fmt_sprintf.html">fmt_sprintf</a></span><span class="op">(</span><span class="st">"%.5f"</span><span class="op">)</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_o9u2cdu0kl1wvah4wojc(i, j, css_id) {
          var table = document.getElementById("tinytable_o9u2cdu0kl1wvah4wojc");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_o9u2cdu0kl1wvah4wojc(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_o9u2cdu0kl1wvah4wojc");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '16', j: 1 },  ], css_id: 'tinytable_css_v2hfue7qv2jltat8q734',}, 
          { positions: [ { i: '8', j: 1 },  ], css_id: 'tinytable_css_3ynf5o2k1q5gmnyznvl1',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '12', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '13', j: 1 }, { i: '14', j: 1 }, { i: '15', j: 1 },  ], css_id: 'tinytable_css_gpadybr7xjl0auxd412k',}, 
          { positions: [ { i: '0', j: 1 },  ], css_id: 'tinytable_css_6xlfjq8uidg5nj19mckj',}, 
          { positions: [ { i: '16', j: 0 },  ], css_id: 'tinytable_css_sk3jb03eomy0jm9bdtwy',}, 
          { positions: [ { i: '8', j: 0 },  ], css_id: 'tinytable_css_j6fgthm345mcx0e7pr9h',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '7', j: 0 }, { i: '12', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 }, { i: '13', j: 0 }, { i: '14', j: 0 }, { i: '15', j: 0 },  ], css_id: 'tinytable_css_3s04sget6adsyeaaipix',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_6i1581h2rziydobrowgr',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_o9u2cdu0kl1wvah4wojc(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_v2hfue7qv2jltat8q734, .table th.tinytable_css_v2hfue7qv2jltat8q734 { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_3ynf5o2k1q5gmnyznvl1, .table th.tinytable_css_3ynf5o2k1q5gmnyznvl1 { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_gpadybr7xjl0auxd412k, .table th.tinytable_css_gpadybr7xjl0auxd412k { text-align: center; }
      .table td.tinytable_css_6xlfjq8uidg5nj19mckj, .table th.tinytable_css_6xlfjq8uidg5nj19mckj { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_sk3jb03eomy0jm9bdtwy, .table th.tinytable_css_sk3jb03eomy0jm9bdtwy { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_j6fgthm345mcx0e7pr9h, .table th.tinytable_css_j6fgthm345mcx0e7pr9h { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_3s04sget6adsyeaaipix, .table th.tinytable_css_3s04sget6adsyeaaipix { text-align: left; }
      .table td.tinytable_css_6i1581h2rziydobrowgr, .table th.tinytable_css_6i1581h2rziydobrowgr { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_o9u2cdu0kl1wvah4wojc" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">(1)</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">17.73662</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(13.01979)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">hp</td>
                  <td data-row="3" data-col="1">-0.05797</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.01421)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">drat</td>
                  <td data-row="5" data-col="1">4.42875</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1">(1.29169)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">qsec</td>
                  <td data-row="7" data-col="1">-0.28407</td>
                </tr>
<tr>
<td data-row="8" data-col="0"></td>
                  <td data-row="8" data-col="1">(0.48923)</td>
                </tr>
<tr>
<td data-row="9" data-col="0">Num.Obs.</td>
                  <td data-row="9" data-col="1">32</td>
                </tr>
<tr>
<td data-row="10" data-col="0">R2</td>
                  <td data-row="10" data-col="1">0.744</td>
                </tr>
<tr>
<td data-row="11" data-col="0">R2 Adj.</td>
                  <td data-row="11" data-col="1">0.717</td>
                </tr>
<tr>
<td data-row="12" data-col="0">AIC</td>
                  <td data-row="12" data-col="1">171.1</td>
                </tr>
<tr>
<td data-row="13" data-col="0">BIC</td>
                  <td data-row="13" data-col="1">178.5</td>
                </tr>
<tr>
<td data-row="14" data-col="0">Log.Lik.</td>
                  <td data-row="14" data-col="1">-80.561</td>
                </tr>
<tr>
<td data-row="15" data-col="0">F</td>
                  <td data-row="15" data-col="1">27.161</td>
                </tr>
<tr>
<td data-row="16" data-col="0">RMSE</td>
                  <td data-row="16" data-col="1">3.00</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb20"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">mod</span>, fmt <span class="op">=</span> <span class="fu"><a href="https://modelsummary.com/man/fmt_statistic.html">fmt_statistic</a></span><span class="op">(</span>estimate <span class="op">=</span> <span class="fl">4</span>, conf.int <span class="op">=</span> <span class="fl">1</span><span class="op">)</span>, statistic <span class="op">=</span> <span class="st">"conf.int"</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_6mbxqdf50edjlo1nponr(i, j, css_id) {
          var table = document.getElementById("tinytable_6mbxqdf50edjlo1nponr");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_6mbxqdf50edjlo1nponr(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_6mbxqdf50edjlo1nponr");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '16', j: 1 },  ], css_id: 'tinytable_css_lw5gkvy34u2hqaipyo8z',}, 
          { positions: [ { i: '8', j: 1 },  ], css_id: 'tinytable_css_lyrcbajlpo1d52aj834p',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '12', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '13', j: 1 }, { i: '14', j: 1 }, { i: '15', j: 1 },  ], css_id: 'tinytable_css_nx152m6reexaayf2j3s6',}, 
          { positions: [ { i: '0', j: 1 },  ], css_id: 'tinytable_css_v0mir6gnb91xnw1vldsp',}, 
          { positions: [ { i: '16', j: 0 },  ], css_id: 'tinytable_css_lhx2j80oo7n2wpp9xdv4',}, 
          { positions: [ { i: '8', j: 0 },  ], css_id: 'tinytable_css_a5lbxvikq1r3l8f3f4jn',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '7', j: 0 }, { i: '12', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 }, { i: '13', j: 0 }, { i: '14', j: 0 }, { i: '15', j: 0 },  ], css_id: 'tinytable_css_eic1b9hl94kmkx7cofja',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_3dwxru6ghaezoh4tvytw',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_6mbxqdf50edjlo1nponr(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_lw5gkvy34u2hqaipyo8z, .table th.tinytable_css_lw5gkvy34u2hqaipyo8z { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_lyrcbajlpo1d52aj834p, .table th.tinytable_css_lyrcbajlpo1d52aj834p { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_nx152m6reexaayf2j3s6, .table th.tinytable_css_nx152m6reexaayf2j3s6 { text-align: center; }
      .table td.tinytable_css_v0mir6gnb91xnw1vldsp, .table th.tinytable_css_v0mir6gnb91xnw1vldsp { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_lhx2j80oo7n2wpp9xdv4, .table th.tinytable_css_lhx2j80oo7n2wpp9xdv4 { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_a5lbxvikq1r3l8f3f4jn, .table th.tinytable_css_a5lbxvikq1r3l8f3f4jn { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_eic1b9hl94kmkx7cofja, .table th.tinytable_css_eic1b9hl94kmkx7cofja { text-align: left; }
      .table td.tinytable_css_3dwxru6ghaezoh4tvytw, .table th.tinytable_css_3dwxru6ghaezoh4tvytw { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_6mbxqdf50edjlo1nponr" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">(1)</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">17.7366</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">[-8.9, 44.4]</td>
                </tr>
<tr>
<td data-row="3" data-col="0">hp</td>
                  <td data-row="3" data-col="1">-0.0580</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">[-0.1, -0.0]</td>
                </tr>
<tr>
<td data-row="5" data-col="0">drat</td>
                  <td data-row="5" data-col="1">4.4288</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1">[1.8, 7.1]</td>
                </tr>
<tr>
<td data-row="7" data-col="0">qsec</td>
                  <td data-row="7" data-col="1">-0.2841</td>
                </tr>
<tr>
<td data-row="8" data-col="0"></td>
                  <td data-row="8" data-col="1">[-1.3, 0.7]</td>
                </tr>
<tr>
<td data-row="9" data-col="0">Num.Obs.</td>
                  <td data-row="9" data-col="1">32</td>
                </tr>
<tr>
<td data-row="10" data-col="0">R2</td>
                  <td data-row="10" data-col="1">0.744</td>
                </tr>
<tr>
<td data-row="11" data-col="0">R2 Adj.</td>
                  <td data-row="11" data-col="1">0.717</td>
                </tr>
<tr>
<td data-row="12" data-col="0">AIC</td>
                  <td data-row="12" data-col="1">171.1</td>
                </tr>
<tr>
<td data-row="13" data-col="0">BIC</td>
                  <td data-row="13" data-col="1">178.5</td>
                </tr>
<tr>
<td data-row="14" data-col="0">Log.Lik.</td>
                  <td data-row="14" data-col="1">-80.561</td>
                </tr>
<tr>
<td data-row="15" data-col="0">F</td>
                  <td data-row="15" data-col="1">27.161</td>
                </tr>
<tr>
<td data-row="16" data-col="0">RMSE</td>
                  <td data-row="16" data-col="1">3.00</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb21"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">mod</span>, fmt <span class="op">=</span> <span class="fu"><a href="https://modelsummary.com/man/fmt_term.html">fmt_term</a></span><span class="op">(</span>hp <span class="op">=</span> <span class="fl">4</span>, drat <span class="op">=</span> <span class="fl">1</span>, default <span class="op">=</span> <span class="fl">2</span><span class="op">)</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_9unlnjbcqtc9h2s6f5pp(i, j, css_id) {
          var table = document.getElementById("tinytable_9unlnjbcqtc9h2s6f5pp");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_9unlnjbcqtc9h2s6f5pp(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_9unlnjbcqtc9h2s6f5pp");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '16', j: 1 },  ], css_id: 'tinytable_css_i5087soywtranjo41jwr',}, 
          { positions: [ { i: '8', j: 1 },  ], css_id: 'tinytable_css_xf279aqptztty2uzzu7r',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '12', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '13', j: 1 }, { i: '14', j: 1 }, { i: '15', j: 1 },  ], css_id: 'tinytable_css_qcjthnn4uqqf4m2xxzje',}, 
          { positions: [ { i: '0', j: 1 },  ], css_id: 'tinytable_css_b6lrxrshhbtverzyiirm',}, 
          { positions: [ { i: '16', j: 0 },  ], css_id: 'tinytable_css_sumcmgecl5avwbtuc017',}, 
          { positions: [ { i: '8', j: 0 },  ], css_id: 'tinytable_css_o2teufspg68u6dcqvdeo',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '7', j: 0 }, { i: '12', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 }, { i: '13', j: 0 }, { i: '14', j: 0 }, { i: '15', j: 0 },  ], css_id: 'tinytable_css_f6c092svk147rsrkb281',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_umey6wj0qxw74c5256lh',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_9unlnjbcqtc9h2s6f5pp(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_i5087soywtranjo41jwr, .table th.tinytable_css_i5087soywtranjo41jwr { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_xf279aqptztty2uzzu7r, .table th.tinytable_css_xf279aqptztty2uzzu7r { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_qcjthnn4uqqf4m2xxzje, .table th.tinytable_css_qcjthnn4uqqf4m2xxzje { text-align: center; }
      .table td.tinytable_css_b6lrxrshhbtverzyiirm, .table th.tinytable_css_b6lrxrshhbtverzyiirm { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_sumcmgecl5avwbtuc017, .table th.tinytable_css_sumcmgecl5avwbtuc017 { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_o2teufspg68u6dcqvdeo, .table th.tinytable_css_o2teufspg68u6dcqvdeo { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_f6c092svk147rsrkb281, .table th.tinytable_css_f6c092svk147rsrkb281 { text-align: left; }
      .table td.tinytable_css_umey6wj0qxw74c5256lh, .table th.tinytable_css_umey6wj0qxw74c5256lh { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_9unlnjbcqtc9h2s6f5pp" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">(1)</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">17.74</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(13.02)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">hp</td>
                  <td data-row="3" data-col="1">-0.0580</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.0142)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">drat</td>
                  <td data-row="5" data-col="1">4.4</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1">(1.3)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">qsec</td>
                  <td data-row="7" data-col="1">-0.28</td>
                </tr>
<tr>
<td data-row="8" data-col="0"></td>
                  <td data-row="8" data-col="1">(0.49)</td>
                </tr>
<tr>
<td data-row="9" data-col="0">Num.Obs.</td>
                  <td data-row="9" data-col="1">32</td>
                </tr>
<tr>
<td data-row="10" data-col="0">R2</td>
                  <td data-row="10" data-col="1">0.744</td>
                </tr>
<tr>
<td data-row="11" data-col="0">R2 Adj.</td>
                  <td data-row="11" data-col="1">0.717</td>
                </tr>
<tr>
<td data-row="12" data-col="0">AIC</td>
                  <td data-row="12" data-col="1">171.1</td>
                </tr>
<tr>
<td data-row="13" data-col="0">BIC</td>
                  <td data-row="13" data-col="1">178.5</td>
                </tr>
<tr>
<td data-row="14" data-col="0">Log.Lik.</td>
                  <td data-row="14" data-col="1">-80.561</td>
                </tr>
<tr>
<td data-row="15" data-col="0">F</td>
                  <td data-row="15" data-col="1">27.161</td>
                </tr>
<tr>
<td data-row="16" data-col="0">RMSE</td>
                  <td data-row="16" data-col="1">3.00</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb22"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="va">m</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/stats/lm.html">lm</a></span><span class="op">(</span><span class="va">mpg</span> <span class="op">~</span> <span class="fu"><a href="https://rdrr.io/r/base/AsIs.html">I</a></span><span class="op">(</span><span class="va">hp</span> <span class="op">*</span> <span class="fl">1000</span><span class="op">)</span> <span class="op">+</span> <span class="va">drat</span>, data <span class="op">=</span> <span class="va">mtcars</span><span class="op">)</span></span>
<span><span class="va">f</span> <span class="op">&lt;-</span> <span class="kw">function</span><span class="op">(</span><span class="va">x</span><span class="op">)</span> <span class="fu"><a href="https://rdrr.io/r/base/format.html">format</a></span><span class="op">(</span><span class="va">x</span>, digits <span class="op">=</span> <span class="fl">3</span>, nsmall <span class="op">=</span> <span class="fl">2</span>, scientific <span class="op">=</span> <span class="cn">FALSE</span>, trim <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">m</span>, fmt <span class="op">=</span> <span class="va">f</span>, gof_map <span class="op">=</span> <span class="cn">NA</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_uteomqarl9o5jgz8hpun(i, j, css_id) {
          var table = document.getElementById("tinytable_uteomqarl9o5jgz8hpun");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_uteomqarl9o5jgz8hpun(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_uteomqarl9o5jgz8hpun");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '6', j: 1 },  ], css_id: 'tinytable_css_cpifjr63ssdsqi1b5pkk',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 },  ], css_id: 'tinytable_css_ztqirwftezpdleece74j',}, 
          { positions: [ { i: '0', j: 1 },  ], css_id: 'tinytable_css_3lfoxe0t8i5yv2quff4i',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_1ikykann7xhhxwir0u2b',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 },  ], css_id: 'tinytable_css_c6bqbx4c8zoj9b9sev6j',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_h0fmft5vrmphc3ykslac',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_uteomqarl9o5jgz8hpun(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_cpifjr63ssdsqi1b5pkk, .table th.tinytable_css_cpifjr63ssdsqi1b5pkk { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_ztqirwftezpdleece74j, .table th.tinytable_css_ztqirwftezpdleece74j { text-align: center; }
      .table td.tinytable_css_3lfoxe0t8i5yv2quff4i, .table th.tinytable_css_3lfoxe0t8i5yv2quff4i { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_1ikykann7xhhxwir0u2b, .table th.tinytable_css_1ikykann7xhhxwir0u2b { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_c6bqbx4c8zoj9b9sev6j, .table th.tinytable_css_c6bqbx4c8zoj9b9sev6j { text-align: left; }
      .table td.tinytable_css_h0fmft5vrmphc3ykslac, .table th.tinytable_css_h0fmft5vrmphc3ykslac { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_uteomqarl9o5jgz8hpun" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">(1)</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">10.7898612</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(5.07775160)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">I(hp * 1000)</td>
                  <td data-row="3" data-col="1">-0.0000518</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.00000929)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">drat</td>
                  <td data-row="5" data-col="1">4.6981578</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1">(1.19163348)</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb23"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># coef_rename</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, coef_rename <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html">c</a></span><span class="op">(</span><span class="st">"Volume"</span> <span class="op">=</span> <span class="st">"Large"</span>, <span class="st">"Height"</span> <span class="op">=</span> <span class="st">"Tall"</span><span class="op">)</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_0wrd1r33lnlcmn0ce82i(i, j, css_id) {
          var table = document.getElementById("tinytable_0wrd1r33lnlcmn0ce82i");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_0wrd1r33lnlcmn0ce82i(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_0wrd1r33lnlcmn0ce82i");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '14', j: 1 }, { i: '14', j: 2 },  ], css_id: 'tinytable_css_ur6wu344j4rfhn0maimp',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_u02nwsd7qwsprvlt9702',}, 
          { positions: [ { i: '1', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '4', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '12', j: 2 }, { i: '2', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '10', j: 2 }, { i: '7', j: 2 }, { i: '9', j: 2 }, { i: '11', j: 2 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_a56efvass39fswnemat6',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_ysg2i4ttx7nmx3loclee',}, 
          { positions: [ { i: '14', j: 0 },  ], css_id: 'tinytable_css_09256pils36gommu8zwa',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_xxtvrkxc584qsa5c9ddy',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 },  ], css_id: 'tinytable_css_sn9ojq5u4oiw0s5k6nag',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_4v2oupwg1uir7nadagk8',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_0wrd1r33lnlcmn0ce82i(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_ur6wu344j4rfhn0maimp, .table th.tinytable_css_ur6wu344j4rfhn0maimp { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_u02nwsd7qwsprvlt9702, .table th.tinytable_css_u02nwsd7qwsprvlt9702 { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_a56efvass39fswnemat6, .table th.tinytable_css_a56efvass39fswnemat6 { text-align: center; }
      .table td.tinytable_css_ysg2i4ttx7nmx3loclee, .table th.tinytable_css_ysg2i4ttx7nmx3loclee { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_09256pils36gommu8zwa, .table th.tinytable_css_09256pils36gommu8zwa { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_xxtvrkxc584qsa5c9ddy, .table th.tinytable_css_xxtvrkxc584qsa5c9ddy { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_sn9ojq5u4oiw0s5k6nag, .table th.tinytable_css_sn9ojq5u4oiw0s5k6nag { text-align: left; }
      .table td.tinytable_css_4v2oupwg1uir7nadagk8, .table th.tinytable_css_4v2oupwg1uir7nadagk8 { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_0wrd1r33lnlcmn0ce82i" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(5.960)</td>
                  <td data-row="2" data-col="2">(1.973)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Tall</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.078)</td>
                  <td data-row="4" data-col="2">(0.028)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Large</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(0.011)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Num.Obs.</td>
                  <td data-row="7" data-col="1">31</td>
                  <td data-row="7" data-col="2">31</td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2</td>
                  <td data-row="8" data-col="1">0.270</td>
                  <td data-row="8" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="9" data-col="0">R2 Adj.</td>
                  <td data-row="9" data-col="1">0.244</td>
                  <td data-row="9" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="10" data-col="0">AIC</td>
                  <td data-row="10" data-col="1">154.1</td>
                  <td data-row="10" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="11" data-col="0">BIC</td>
                  <td data-row="11" data-col="1">158.4</td>
                  <td data-row="11" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="12" data-col="0">Log.Lik.</td>
                  <td data-row="12" data-col="1">-74.061</td>
                  <td data-row="12" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="13" data-col="0">F</td>
                  <td data-row="13" data-col="1">10.707</td>
                  <td data-row="13" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="14" data-col="0">RMSE</td>
                  <td data-row="14" data-col="1">2.64</td>
                  <td data-row="14" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb24"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, coef_rename <span class="op">=</span> <span class="va">toupper</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_pweyxj2fuaacccmto2uy(i, j, css_id) {
          var table = document.getElementById("tinytable_pweyxj2fuaacccmto2uy");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_pweyxj2fuaacccmto2uy(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_pweyxj2fuaacccmto2uy");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '14', j: 1 }, { i: '14', j: 2 },  ], css_id: 'tinytable_css_m2g33veyczpscgxiehf0',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_3zp04gw5wx3bpr1oaysz',}, 
          { positions: [ { i: '1', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '4', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '12', j: 2 }, { i: '2', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '10', j: 2 }, { i: '7', j: 2 }, { i: '9', j: 2 }, { i: '11', j: 2 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_hb4n1xwxt1txt6saa0a4',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_tbp6x5od3hzsrpjw74s1',}, 
          { positions: [ { i: '14', j: 0 },  ], css_id: 'tinytable_css_3e16ophp0frcccpzdvmj',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_qon5qsvh07hgujssh9en',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 },  ], css_id: 'tinytable_css_27slgcvtyt3ocp8qt270',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_w8n2r1z1nr4m7exj414z',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_pweyxj2fuaacccmto2uy(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_m2g33veyczpscgxiehf0, .table th.tinytable_css_m2g33veyczpscgxiehf0 { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_3zp04gw5wx3bpr1oaysz, .table th.tinytable_css_3zp04gw5wx3bpr1oaysz { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_hb4n1xwxt1txt6saa0a4, .table th.tinytable_css_hb4n1xwxt1txt6saa0a4 { text-align: center; }
      .table td.tinytable_css_tbp6x5od3hzsrpjw74s1, .table th.tinytable_css_tbp6x5od3hzsrpjw74s1 { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_3e16ophp0frcccpzdvmj, .table th.tinytable_css_3e16ophp0frcccpzdvmj { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_qon5qsvh07hgujssh9en, .table th.tinytable_css_qon5qsvh07hgujssh9en { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_27slgcvtyt3ocp8qt270, .table th.tinytable_css_27slgcvtyt3ocp8qt270 { text-align: left; }
      .table td.tinytable_css_w8n2r1z1nr4m7exj414z, .table th.tinytable_css_w8n2r1z1nr4m7exj414z { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_pweyxj2fuaacccmto2uy" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(INTERCEPT)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(5.960)</td>
                  <td data-row="2" data-col="2">(1.973)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">HEIGHT</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.078)</td>
                  <td data-row="4" data-col="2">(0.028)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">VOLUME</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(0.011)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Num.Obs.</td>
                  <td data-row="7" data-col="1">31</td>
                  <td data-row="7" data-col="2">31</td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2</td>
                  <td data-row="8" data-col="1">0.270</td>
                  <td data-row="8" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="9" data-col="0">R2 Adj.</td>
                  <td data-row="9" data-col="1">0.244</td>
                  <td data-row="9" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="10" data-col="0">AIC</td>
                  <td data-row="10" data-col="1">154.1</td>
                  <td data-row="10" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="11" data-col="0">BIC</td>
                  <td data-row="11" data-col="1">158.4</td>
                  <td data-row="11" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="12" data-col="0">Log.Lik.</td>
                  <td data-row="12" data-col="1">-74.061</td>
                  <td data-row="12" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="13" data-col="0">F</td>
                  <td data-row="13" data-col="1">10.707</td>
                  <td data-row="13" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="14" data-col="0">RMSE</td>
                  <td data-row="14" data-col="1">2.64</td>
                  <td data-row="14" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb25"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, coef_rename <span class="op">=</span> <span class="va">coef_rename</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_jp35iqoa7tj9etaa6lqd(i, j, css_id) {
          var table = document.getElementById("tinytable_jp35iqoa7tj9etaa6lqd");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_jp35iqoa7tj9etaa6lqd(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_jp35iqoa7tj9etaa6lqd");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '14', j: 1 }, { i: '14', j: 2 },  ], css_id: 'tinytable_css_58d472h8syssqtmdsnz6',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_zx9i1ybed4py4nq7nv9h',}, 
          { positions: [ { i: '1', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '4', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '12', j: 2 }, { i: '2', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '10', j: 2 }, { i: '7', j: 2 }, { i: '9', j: 2 }, { i: '11', j: 2 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_9eyucachewrl37kt13qk',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_xzp0r7egqhhp9g5aqgnf',}, 
          { positions: [ { i: '14', j: 0 },  ], css_id: 'tinytable_css_hbkv8804agy626pnjj5y',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_6q0x87ubzg4dijzm34w8',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 },  ], css_id: 'tinytable_css_ldqkb3zlsfc0esljylkq',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_wr7xk9xi5adaqc4mnic3',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_jp35iqoa7tj9etaa6lqd(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_58d472h8syssqtmdsnz6, .table th.tinytable_css_58d472h8syssqtmdsnz6 { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_zx9i1ybed4py4nq7nv9h, .table th.tinytable_css_zx9i1ybed4py4nq7nv9h { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_9eyucachewrl37kt13qk, .table th.tinytable_css_9eyucachewrl37kt13qk { text-align: center; }
      .table td.tinytable_css_xzp0r7egqhhp9g5aqgnf, .table th.tinytable_css_xzp0r7egqhhp9g5aqgnf { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_hbkv8804agy626pnjj5y, .table th.tinytable_css_hbkv8804agy626pnjj5y { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_6q0x87ubzg4dijzm34w8, .table th.tinytable_css_6q0x87ubzg4dijzm34w8 { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_ldqkb3zlsfc0esljylkq, .table th.tinytable_css_ldqkb3zlsfc0esljylkq { text-align: left; }
      .table td.tinytable_css_wr7xk9xi5adaqc4mnic3, .table th.tinytable_css_wr7xk9xi5adaqc4mnic3 { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_jp35iqoa7tj9etaa6lqd" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(5.960)</td>
                  <td data-row="2" data-col="2">(1.973)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.078)</td>
                  <td data-row="4" data-col="2">(0.028)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Volume</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(0.011)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Num.Obs.</td>
                  <td data-row="7" data-col="1">31</td>
                  <td data-row="7" data-col="2">31</td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2</td>
                  <td data-row="8" data-col="1">0.270</td>
                  <td data-row="8" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="9" data-col="0">R2 Adj.</td>
                  <td data-row="9" data-col="1">0.244</td>
                  <td data-row="9" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="10" data-col="0">AIC</td>
                  <td data-row="10" data-col="1">154.1</td>
                  <td data-row="10" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="11" data-col="0">BIC</td>
                  <td data-row="11" data-col="1">158.4</td>
                  <td data-row="11" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="12" data-col="0">Log.Lik.</td>
                  <td data-row="12" data-col="1">-74.061</td>
                  <td data-row="12" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="13" data-col="0">F</td>
                  <td data-row="13" data-col="1">10.707</td>
                  <td data-row="13" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="14" data-col="0">RMSE</td>
                  <td data-row="14" data-col="1">2.64</td>
                  <td data-row="14" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb26"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># coef_rename = TRUE for variable labels</span></span>
<span><span class="va">datlab</span> <span class="op">&lt;-</span> <span class="va">mtcars</span></span>
<span><span class="va">datlab</span><span class="op">$</span><span class="va">cyl</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/factor.html">factor</a></span><span class="op">(</span><span class="va">datlab</span><span class="op">$</span><span class="va">cyl</span><span class="op">)</span></span>
<span><span class="fu"><a href="https://rdrr.io/r/base/attr.html">attr</a></span><span class="op">(</span><span class="va">datlab</span><span class="op">$</span><span class="va">hp</span>, <span class="st">"label"</span><span class="op">)</span> <span class="op">&lt;-</span> <span class="st">"Horsepower"</span></span>
<span><span class="fu"><a href="https://rdrr.io/r/base/attr.html">attr</a></span><span class="op">(</span><span class="va">datlab</span><span class="op">$</span><span class="va">cyl</span>, <span class="st">"label"</span><span class="op">)</span> <span class="op">&lt;-</span> <span class="st">"Cylinders"</span></span>
<span><span class="va">modlab</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/stats/lm.html">lm</a></span><span class="op">(</span><span class="va">mpg</span> <span class="op">~</span> <span class="va">hp</span> <span class="op">*</span> <span class="va">drat</span> <span class="op">+</span> <span class="va">cyl</span>, data <span class="op">=</span> <span class="va">datlab</span><span class="op">)</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">modlab</span>, coef_rename <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_4fdspjoenkhenxqjvzn3(i, j, css_id) {
          var table = document.getElementById("tinytable_4fdspjoenkhenxqjvzn3");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_4fdspjoenkhenxqjvzn3(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_4fdspjoenkhenxqjvzn3");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '20', j: 1 },  ], css_id: 'tinytable_css_gvdhlfoleq786r3h405a',}, 
          { positions: [ { i: '12', j: 1 },  ], css_id: 'tinytable_css_d2rem1wxoj2k4nxyq3nm',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '16', j: 1 }, { i: '13', j: 1 }, { i: '14', j: 1 }, { i: '15', j: 1 }, { i: '17', j: 1 }, { i: '18', j: 1 }, { i: '19', j: 1 },  ], css_id: 'tinytable_css_iow3i3vypk6p0aulxpjv',}, 
          { positions: [ { i: '0', j: 1 },  ], css_id: 'tinytable_css_1kk6udrtjieaeswhm70s',}, 
          { positions: [ { i: '20', j: 0 },  ], css_id: 'tinytable_css_u9a75w0inu3tert3jj91',}, 
          { positions: [ { i: '12', j: 0 },  ], css_id: 'tinytable_css_vixdczz3za8666jz3s4u',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 }, { i: '16', j: 0 }, { i: '13', j: 0 }, { i: '14', j: 0 }, { i: '15', j: 0 }, { i: '17', j: 0 }, { i: '18', j: 0 }, { i: '19', j: 0 },  ], css_id: 'tinytable_css_uhtgpayc1wvy3idnw7pp',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_1i761nv3ner45mpjfpg1',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_4fdspjoenkhenxqjvzn3(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_gvdhlfoleq786r3h405a, .table th.tinytable_css_gvdhlfoleq786r3h405a { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_d2rem1wxoj2k4nxyq3nm, .table th.tinytable_css_d2rem1wxoj2k4nxyq3nm { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_iow3i3vypk6p0aulxpjv, .table th.tinytable_css_iow3i3vypk6p0aulxpjv { text-align: center; }
      .table td.tinytable_css_1kk6udrtjieaeswhm70s, .table th.tinytable_css_1kk6udrtjieaeswhm70s { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_u9a75w0inu3tert3jj91, .table th.tinytable_css_u9a75w0inu3tert3jj91 { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_vixdczz3za8666jz3s4u, .table th.tinytable_css_vixdczz3za8666jz3s4u { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_uhtgpayc1wvy3idnw7pp, .table th.tinytable_css_uhtgpayc1wvy3idnw7pp { text-align: left; }
      .table td.tinytable_css_1i761nv3ner45mpjfpg1, .table th.tinytable_css_1i761nv3ner45mpjfpg1 { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_4fdspjoenkhenxqjvzn3" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">(1)</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">14.850</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(11.923)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Horsepower</td>
                  <td data-row="3" data-col="1">-0.011</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.082)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">drat</td>
                  <td data-row="5" data-col="1">3.612</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1">(3.019)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Cylinders [6]</td>
                  <td data-row="7" data-col="1">-4.091</td>
                </tr>
<tr>
<td data-row="8" data-col="0"></td>
                  <td data-row="8" data-col="1">(1.881)</td>
                </tr>
<tr>
<td data-row="9" data-col="0">Cylinders [8]</td>
                  <td data-row="9" data-col="1">-5.019</td>
                </tr>
<tr>
<td data-row="10" data-col="0"></td>
                  <td data-row="10" data-col="1">(3.056)</td>
                </tr>
<tr>
<td data-row="11" data-col="0">Horsepower × drat</td>
                  <td data-row="11" data-col="1">-0.006</td>
                </tr>
<tr>
<td data-row="12" data-col="0"></td>
                  <td data-row="12" data-col="1">(0.021)</td>
                </tr>
<tr>
<td data-row="13" data-col="0">Num.Obs.</td>
                  <td data-row="13" data-col="1">32</td>
                </tr>
<tr>
<td data-row="14" data-col="0">R2</td>
                  <td data-row="14" data-col="1">0.784</td>
                </tr>
<tr>
<td data-row="15" data-col="0">R2 Adj.</td>
                  <td data-row="15" data-col="1">0.742</td>
                </tr>
<tr>
<td data-row="16" data-col="0">AIC</td>
                  <td data-row="16" data-col="1">169.7</td>
                </tr>
<tr>
<td data-row="17" data-col="0">BIC</td>
                  <td data-row="17" data-col="1">180.0</td>
                </tr>
<tr>
<td data-row="18" data-col="0">Log.Lik.</td>
                  <td data-row="18" data-col="1">-77.860</td>
                </tr>
<tr>
<td data-row="19" data-col="0">F</td>
                  <td data-row="19" data-col="1">18.871</td>
                </tr>
<tr>
<td data-row="20" data-col="0">RMSE</td>
                  <td data-row="20" data-col="1">2.76</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb27"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># coef_rename: unnamed vector of length equal to the number of terms in the final table</span></span>
<span><span class="va">m</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/stats/lm.html">lm</a></span><span class="op">(</span><span class="va">hp</span> <span class="op">~</span> <span class="va">mpg</span> <span class="op">+</span> <span class="fu"><a href="https://rdrr.io/r/base/factor.html">factor</a></span><span class="op">(</span><span class="va">cyl</span><span class="op">)</span>, data <span class="op">=</span> <span class="va">mtcars</span><span class="op">)</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">m</span>, coef_omit <span class="op">=</span> <span class="op">-</span><span class="op">(</span><span class="fl">3</span><span class="op">:</span><span class="fl">4</span><span class="op">)</span>, coef_rename <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html">c</a></span><span class="op">(</span><span class="st">"Cyl 6"</span>, <span class="st">"Cyl 8"</span><span class="op">)</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_dizcjm84mquty5mgx6cq(i, j, css_id) {
          var table = document.getElementById("tinytable_dizcjm84mquty5mgx6cq");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_dizcjm84mquty5mgx6cq(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_dizcjm84mquty5mgx6cq");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '12', j: 1 },  ], css_id: 'tinytable_css_z0zx4wuhp2x8ujlhjn47',}, 
          { positions: [ { i: '4', j: 1 },  ], css_id: 'tinytable_css_f6lwyt3xf11y0niure9j',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '8', j: 1 }, { i: '5', j: 1 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 },  ], css_id: 'tinytable_css_xni3kkt6rtl3u7xvfiar',}, 
          { positions: [ { i: '0', j: 1 },  ], css_id: 'tinytable_css_nk0vn6g7r2ns2o0u12uv',}, 
          { positions: [ { i: '12', j: 0 },  ], css_id: 'tinytable_css_econd61ce9utwdb210qi',}, 
          { positions: [ { i: '4', j: 0 },  ], css_id: 'tinytable_css_44l44w9oko6vlgcb9oj0',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '8', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '7', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 },  ], css_id: 'tinytable_css_stuilw5f9ddjic3fp3ll',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_clt0vyfu915ohrxnelez',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_dizcjm84mquty5mgx6cq(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_z0zx4wuhp2x8ujlhjn47, .table th.tinytable_css_z0zx4wuhp2x8ujlhjn47 { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_f6lwyt3xf11y0niure9j, .table th.tinytable_css_f6lwyt3xf11y0niure9j { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_xni3kkt6rtl3u7xvfiar, .table th.tinytable_css_xni3kkt6rtl3u7xvfiar { text-align: center; }
      .table td.tinytable_css_nk0vn6g7r2ns2o0u12uv, .table th.tinytable_css_nk0vn6g7r2ns2o0u12uv { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_econd61ce9utwdb210qi, .table th.tinytable_css_econd61ce9utwdb210qi { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_44l44w9oko6vlgcb9oj0, .table th.tinytable_css_44l44w9oko6vlgcb9oj0 { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_stuilw5f9ddjic3fp3ll, .table th.tinytable_css_stuilw5f9ddjic3fp3ll { text-align: left; }
      .table td.tinytable_css_clt0vyfu915ohrxnelez, .table th.tinytable_css_clt0vyfu915ohrxnelez { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_dizcjm84mquty5mgx6cq" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">(1)</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">Cyl 6</td>
                  <td data-row="1" data-col="1">16.623</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(23.197)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Cyl 8</td>
                  <td data-row="3" data-col="1">88.105</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(28.819)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Num.Obs.</td>
                  <td data-row="5" data-col="1">32</td>
                </tr>
<tr>
<td data-row="6" data-col="0">R2</td>
                  <td data-row="6" data-col="1">0.737</td>
                </tr>
<tr>
<td data-row="7" data-col="0">R2 Adj.</td>
                  <td data-row="7" data-col="1">0.709</td>
                </tr>
<tr>
<td data-row="8" data-col="0">AIC</td>
                  <td data-row="8" data-col="1">327.7</td>
                </tr>
<tr>
<td data-row="9" data-col="0">BIC</td>
                  <td data-row="9" data-col="1">335.0</td>
                </tr>
<tr>
<td data-row="10" data-col="0">Log.Lik.</td>
                  <td data-row="10" data-col="1">-158.831</td>
                </tr>
<tr>
<td data-row="11" data-col="0">F</td>
                  <td data-row="11" data-col="1">26.122</td>
                </tr>
<tr>
<td data-row="12" data-col="0">RMSE</td>
                  <td data-row="12" data-col="1">34.62</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb28"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># coef_map</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, coef_map <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html">c</a></span><span class="op">(</span><span class="st">"Volume"</span> <span class="op">=</span> <span class="st">"Large"</span>, <span class="st">"Height"</span> <span class="op">=</span> <span class="st">"Tall"</span><span class="op">)</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_8o3hsw3sg5rq725k68oq(i, j, css_id) {
          var table = document.getElementById("tinytable_8o3hsw3sg5rq725k68oq");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_8o3hsw3sg5rq725k68oq(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_8o3hsw3sg5rq725k68oq");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '12', j: 1 }, { i: '12', j: 2 },  ], css_id: 'tinytable_css_ndavjmr1i13390v4qu82',}, 
          { positions: [ { i: '4', j: 1 }, { i: '4', j: 2 },  ], css_id: 'tinytable_css_gkop7nlvbv9zxtizomfl',}, 
          { positions: [ { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '8', j: 1 }, { i: '1', j: 1 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '3', j: 2 }, { i: '5', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '7', j: 2 }, { i: '9', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '11', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '6', j: 2 }, { i: '9', j: 2 }, { i: '10', j: 2 },  ], css_id: 'tinytable_css_yw4qw3mx5o7imzca7r4r',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_tt57debqzzara8kutnzf',}, 
          { positions: [ { i: '12', j: 0 },  ], css_id: 'tinytable_css_ac7uq8oov2pvc84ppdbg',}, 
          { positions: [ { i: '4', j: 0 },  ], css_id: 'tinytable_css_23m4c9bb6r548hyiwft9',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '8', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '7', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 },  ], css_id: 'tinytable_css_nj1kxj7dykd25l0k239a',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_k6u8t9fvwhv9sgwrdat6',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_8o3hsw3sg5rq725k68oq(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_ndavjmr1i13390v4qu82, .table th.tinytable_css_ndavjmr1i13390v4qu82 { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_gkop7nlvbv9zxtizomfl, .table th.tinytable_css_gkop7nlvbv9zxtizomfl { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_yw4qw3mx5o7imzca7r4r, .table th.tinytable_css_yw4qw3mx5o7imzca7r4r { text-align: center; }
      .table td.tinytable_css_tt57debqzzara8kutnzf, .table th.tinytable_css_tt57debqzzara8kutnzf { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_ac7uq8oov2pvc84ppdbg, .table th.tinytable_css_ac7uq8oov2pvc84ppdbg { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_23m4c9bb6r548hyiwft9, .table th.tinytable_css_23m4c9bb6r548hyiwft9 { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_nj1kxj7dykd25l0k239a, .table th.tinytable_css_nj1kxj7dykd25l0k239a { text-align: left; }
      .table td.tinytable_css_k6u8t9fvwhv9sgwrdat6, .table th.tinytable_css_k6u8t9fvwhv9sgwrdat6 { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_8o3hsw3sg5rq725k68oq" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">Large</td>
                  <td data-row="1" data-col="1"></td>
                  <td data-row="1" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1"></td>
                  <td data-row="2" data-col="2">(0.011)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Tall</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.078)</td>
                  <td data-row="4" data-col="2">(0.028)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Num.Obs.</td>
                  <td data-row="5" data-col="1">31</td>
                  <td data-row="5" data-col="2">31</td>
                </tr>
<tr>
<td data-row="6" data-col="0">R2</td>
                  <td data-row="6" data-col="1">0.270</td>
                  <td data-row="6" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="7" data-col="0">R2 Adj.</td>
                  <td data-row="7" data-col="1">0.244</td>
                  <td data-row="7" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="8" data-col="0">AIC</td>
                  <td data-row="8" data-col="1">154.1</td>
                  <td data-row="8" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="9" data-col="0">BIC</td>
                  <td data-row="9" data-col="1">158.4</td>
                  <td data-row="9" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="10" data-col="0">Log.Lik.</td>
                  <td data-row="10" data-col="1">-74.061</td>
                  <td data-row="10" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="11" data-col="0">F</td>
                  <td data-row="11" data-col="1">10.707</td>
                  <td data-row="11" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="12" data-col="0">RMSE</td>
                  <td data-row="12" data-col="1">2.64</td>
                  <td data-row="12" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb29"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, coef_map <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html">c</a></span><span class="op">(</span><span class="st">"Volume"</span>, <span class="st">"Height"</span><span class="op">)</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_ras5ja8mbeoo593k9835(i, j, css_id) {
          var table = document.getElementById("tinytable_ras5ja8mbeoo593k9835");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_ras5ja8mbeoo593k9835(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_ras5ja8mbeoo593k9835");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '12', j: 1 }, { i: '12', j: 2 },  ], css_id: 'tinytable_css_3mcex6b0rozwxn9z8m6q',}, 
          { positions: [ { i: '4', j: 1 }, { i: '4', j: 2 },  ], css_id: 'tinytable_css_4eh0oj8nt59vzhfdh52p',}, 
          { positions: [ { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '8', j: 1 }, { i: '1', j: 1 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '3', j: 2 }, { i: '5', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '7', j: 2 }, { i: '9', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '11', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '6', j: 2 }, { i: '9', j: 2 }, { i: '10', j: 2 },  ], css_id: 'tinytable_css_7wbx2opiztz8czyol0cx',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_h9kg58i3pzuch5rtetvq',}, 
          { positions: [ { i: '12', j: 0 },  ], css_id: 'tinytable_css_rdhaww80r5mrqtdb659e',}, 
          { positions: [ { i: '4', j: 0 },  ], css_id: 'tinytable_css_xgc4o47ikprixmjmdpdh',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '8', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '7', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 },  ], css_id: 'tinytable_css_8mk81n1rjv7p4zrc6glh',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_72fcvoogm5m3rkqpbc8p',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_ras5ja8mbeoo593k9835(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_3mcex6b0rozwxn9z8m6q, .table th.tinytable_css_3mcex6b0rozwxn9z8m6q { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_4eh0oj8nt59vzhfdh52p, .table th.tinytable_css_4eh0oj8nt59vzhfdh52p { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_7wbx2opiztz8czyol0cx, .table th.tinytable_css_7wbx2opiztz8czyol0cx { text-align: center; }
      .table td.tinytable_css_h9kg58i3pzuch5rtetvq, .table th.tinytable_css_h9kg58i3pzuch5rtetvq { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_rdhaww80r5mrqtdb659e, .table th.tinytable_css_rdhaww80r5mrqtdb659e { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_xgc4o47ikprixmjmdpdh, .table th.tinytable_css_xgc4o47ikprixmjmdpdh { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_8mk81n1rjv7p4zrc6glh, .table th.tinytable_css_8mk81n1rjv7p4zrc6glh { text-align: left; }
      .table td.tinytable_css_72fcvoogm5m3rkqpbc8p, .table th.tinytable_css_72fcvoogm5m3rkqpbc8p { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_ras5ja8mbeoo593k9835" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">Volume</td>
                  <td data-row="1" data-col="1"></td>
                  <td data-row="1" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1"></td>
                  <td data-row="2" data-col="2">(0.011)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.078)</td>
                  <td data-row="4" data-col="2">(0.028)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Num.Obs.</td>
                  <td data-row="5" data-col="1">31</td>
                  <td data-row="5" data-col="2">31</td>
                </tr>
<tr>
<td data-row="6" data-col="0">R2</td>
                  <td data-row="6" data-col="1">0.270</td>
                  <td data-row="6" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="7" data-col="0">R2 Adj.</td>
                  <td data-row="7" data-col="1">0.244</td>
                  <td data-row="7" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="8" data-col="0">AIC</td>
                  <td data-row="8" data-col="1">154.1</td>
                  <td data-row="8" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="9" data-col="0">BIC</td>
                  <td data-row="9" data-col="1">158.4</td>
                  <td data-row="9" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="10" data-col="0">Log.Lik.</td>
                  <td data-row="10" data-col="1">-74.061</td>
                  <td data-row="10" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="11" data-col="0">F</td>
                  <td data-row="11" data-col="1">10.707</td>
                  <td data-row="11" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="12" data-col="0">RMSE</td>
                  <td data-row="12" data-col="1">2.64</td>
                  <td data-row="12" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb30"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># coef_omit: omit the first and second coefficients</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, coef_omit <span class="op">=</span> <span class="fl">1</span><span class="op">:</span><span class="fl">2</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_h5qf7gee8nd845tfhbbk(i, j, css_id) {
          var table = document.getElementById("tinytable_h5qf7gee8nd845tfhbbk");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_h5qf7gee8nd845tfhbbk(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_h5qf7gee8nd845tfhbbk");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '10', j: 1 }, { i: '10', j: 2 },  ], css_id: 'tinytable_css_79batpnt8zrsw5jn70ti',}, 
          { positions: [ { i: '2', j: 1 }, { i: '2', j: 2 },  ], css_id: 'tinytable_css_k9maj83bzx67fms7km4c',}, 
          { positions: [ { i: '1', j: 1 }, { i: '6', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '3', j: 2 }, { i: '3', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '7', j: 2 }, { i: '7', j: 1 }, { i: '1', j: 2 }, { i: '6', j: 2 }, { i: '4', j: 2 }, { i: '5', j: 2 }, { i: '8', j: 2 }, { i: '9', j: 2 },  ], css_id: 'tinytable_css_gwtb8k07m34j84wp6ivb',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_f8hitev20rgywu56zn8h',}, 
          { positions: [ { i: '10', j: 0 },  ], css_id: 'tinytable_css_sixyaobrjzhygmbqmkvc',}, 
          { positions: [ { i: '2', j: 0 },  ], css_id: 'tinytable_css_aj6kumvqu51wj2n37wqs',}, 
          { positions: [ { i: '1', j: 0 }, { i: '6', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 },  ], css_id: 'tinytable_css_dzzdviminooel4blqchf',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_g81h02l8w4ezad686n4h',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_h5qf7gee8nd845tfhbbk(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_79batpnt8zrsw5jn70ti, .table th.tinytable_css_79batpnt8zrsw5jn70ti { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_k9maj83bzx67fms7km4c, .table th.tinytable_css_k9maj83bzx67fms7km4c { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_gwtb8k07m34j84wp6ivb, .table th.tinytable_css_gwtb8k07m34j84wp6ivb { text-align: center; }
      .table td.tinytable_css_f8hitev20rgywu56zn8h, .table th.tinytable_css_f8hitev20rgywu56zn8h { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_sixyaobrjzhygmbqmkvc, .table th.tinytable_css_sixyaobrjzhygmbqmkvc { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_aj6kumvqu51wj2n37wqs, .table th.tinytable_css_aj6kumvqu51wj2n37wqs { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_dzzdviminooel4blqchf, .table th.tinytable_css_dzzdviminooel4blqchf { text-align: left; }
      .table td.tinytable_css_g81h02l8w4ezad686n4h, .table th.tinytable_css_g81h02l8w4ezad686n4h { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_h5qf7gee8nd845tfhbbk" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">Volume</td>
                  <td data-row="1" data-col="1"></td>
                  <td data-row="1" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1"></td>
                  <td data-row="2" data-col="2">(0.011)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Num.Obs.</td>
                  <td data-row="3" data-col="1">31</td>
                  <td data-row="3" data-col="2">31</td>
                </tr>
<tr>
<td data-row="4" data-col="0">R2</td>
                  <td data-row="4" data-col="1">0.270</td>
                  <td data-row="4" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="5" data-col="0">R2 Adj.</td>
                  <td data-row="5" data-col="1">0.244</td>
                  <td data-row="5" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="6" data-col="0">AIC</td>
                  <td data-row="6" data-col="1">154.1</td>
                  <td data-row="6" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="7" data-col="0">BIC</td>
                  <td data-row="7" data-col="1">158.4</td>
                  <td data-row="7" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="8" data-col="0">Log.Lik.</td>
                  <td data-row="8" data-col="1">-74.061</td>
                  <td data-row="8" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="9" data-col="0">F</td>
                  <td data-row="9" data-col="1">10.707</td>
                  <td data-row="9" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="10" data-col="0">RMSE</td>
                  <td data-row="10" data-col="1">2.64</td>
                  <td data-row="10" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb31"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># coef_omit: omit coefficients matching one substring</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, coef_omit <span class="op">=</span> <span class="st">"ei"</span>, gof_omit <span class="op">=</span> <span class="st">".*"</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_fl3x230x4ptrqws0mpyq(i, j, css_id) {
          var table = document.getElementById("tinytable_fl3x230x4ptrqws0mpyq");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_fl3x230x4ptrqws0mpyq(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_fl3x230x4ptrqws0mpyq");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '4', j: 1 }, { i: '4', j: 2 },  ], css_id: 'tinytable_css_19uvwjoxkmkr04b0pp4p',}, 
          { positions: [ { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '3', j: 2 }, { i: '1', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 },  ], css_id: 'tinytable_css_v7gprwrsycbtttgrzk07',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_uarsu4uesijk3a1mkmms',}, 
          { positions: [ { i: '4', j: 0 },  ], css_id: 'tinytable_css_yft3fb5wwmudyqn5yw7s',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 },  ], css_id: 'tinytable_css_jid271zl47hilcijl0b7',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_q1qhcehhrwgfzkcijjfk',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_fl3x230x4ptrqws0mpyq(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_19uvwjoxkmkr04b0pp4p, .table th.tinytable_css_19uvwjoxkmkr04b0pp4p { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_v7gprwrsycbtttgrzk07, .table th.tinytable_css_v7gprwrsycbtttgrzk07 { text-align: center; }
      .table td.tinytable_css_uarsu4uesijk3a1mkmms, .table th.tinytable_css_uarsu4uesijk3a1mkmms { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_yft3fb5wwmudyqn5yw7s, .table th.tinytable_css_yft3fb5wwmudyqn5yw7s { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_jid271zl47hilcijl0b7, .table th.tinytable_css_jid271zl47hilcijl0b7 { text-align: left; }
      .table td.tinytable_css_q1qhcehhrwgfzkcijjfk, .table th.tinytable_css_q1qhcehhrwgfzkcijjfk { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_fl3x230x4ptrqws0mpyq" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(5.960)</td>
                  <td data-row="2" data-col="2">(1.973)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Volume</td>
                  <td data-row="3" data-col="1"></td>
                  <td data-row="3" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1"></td>
                  <td data-row="4" data-col="2">(0.011)</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb32"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># coef_omit: omit a specific coefficient</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, coef_omit <span class="op">=</span> <span class="st">"^Volume$"</span>, gof_omit <span class="op">=</span> <span class="st">".*"</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_fcqgqs9obs9h6qmgmjxy(i, j, css_id) {
          var table = document.getElementById("tinytable_fcqgqs9obs9h6qmgmjxy");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_fcqgqs9obs9h6qmgmjxy(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_fcqgqs9obs9h6qmgmjxy");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '4', j: 1 }, { i: '4', j: 2 },  ], css_id: 'tinytable_css_p3hqlanrjteifsnuhxbd',}, 
          { positions: [ { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '3', j: 2 }, { i: '1', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 },  ], css_id: 'tinytable_css_4ngqau579dz8ho0xvgyk',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_9u6k4qg095falrocofh7',}, 
          { positions: [ { i: '4', j: 0 },  ], css_id: 'tinytable_css_8lk7934amg2py6r1d7nl',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 },  ], css_id: 'tinytable_css_c383f0uq623ayt6brir1',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_amqow3zlezhcyeogrc45',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_fcqgqs9obs9h6qmgmjxy(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_p3hqlanrjteifsnuhxbd, .table th.tinytable_css_p3hqlanrjteifsnuhxbd { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_4ngqau579dz8ho0xvgyk, .table th.tinytable_css_4ngqau579dz8ho0xvgyk { text-align: center; }
      .table td.tinytable_css_9u6k4qg095falrocofh7, .table th.tinytable_css_9u6k4qg095falrocofh7 { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_8lk7934amg2py6r1d7nl, .table th.tinytable_css_8lk7934amg2py6r1d7nl { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_c383f0uq623ayt6brir1, .table th.tinytable_css_c383f0uq623ayt6brir1 { text-align: left; }
      .table td.tinytable_css_amqow3zlezhcyeogrc45, .table th.tinytable_css_amqow3zlezhcyeogrc45 { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_fcqgqs9obs9h6qmgmjxy" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(5.960)</td>
                  <td data-row="2" data-col="2">(1.973)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.078)</td>
                  <td data-row="4" data-col="2">(0.028)</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb33"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># coef_omit: omit coefficients matching either one of two substring</span></span>
<span><span class="co"># modelsummary(models, coef_omit = "ei|rc", gof_omit = ".*")</span></span>
<span></span>
<span><span class="co"># coef_omit: keep coefficients starting with a substring (using a negative lookahead)</span></span>
<span><span class="co"># modelsummary(models, coef_omit = "^(?!Vol)", gof_omit = ".*")</span></span>
<span></span>
<span><span class="co"># coef_omit: keep coefficients matching a substring</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, coef_omit <span class="op">=</span> <span class="st">"^(?!.*ei|.*pt)"</span>, gof_omit <span class="op">=</span> <span class="st">".*"</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_4i57fwq6u6hvu0yt2i3c(i, j, css_id) {
          var table = document.getElementById("tinytable_4i57fwq6u6hvu0yt2i3c");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_4i57fwq6u6hvu0yt2i3c(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_4i57fwq6u6hvu0yt2i3c");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '4', j: 1 }, { i: '4', j: 2 },  ], css_id: 'tinytable_css_v5vicbvrakntokxab71k',}, 
          { positions: [ { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '3', j: 2 }, { i: '1', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 },  ], css_id: 'tinytable_css_jrxrb2vx0msie5mdxzqe',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_7s5yjqjzizyzwjsh4g3u',}, 
          { positions: [ { i: '4', j: 0 },  ], css_id: 'tinytable_css_5snm5h6mldtwx4l67s1z',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 },  ], css_id: 'tinytable_css_bw0q6akq19zfh2vfo4u3',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_biy9gtukhk2r2iu1thmz',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_4i57fwq6u6hvu0yt2i3c(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_v5vicbvrakntokxab71k, .table th.tinytable_css_v5vicbvrakntokxab71k { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_jrxrb2vx0msie5mdxzqe, .table th.tinytable_css_jrxrb2vx0msie5mdxzqe { text-align: center; }
      .table td.tinytable_css_7s5yjqjzizyzwjsh4g3u, .table th.tinytable_css_7s5yjqjzizyzwjsh4g3u { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_5snm5h6mldtwx4l67s1z, .table th.tinytable_css_5snm5h6mldtwx4l67s1z { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_bw0q6akq19zfh2vfo4u3, .table th.tinytable_css_bw0q6akq19zfh2vfo4u3 { text-align: left; }
      .table td.tinytable_css_biy9gtukhk2r2iu1thmz, .table th.tinytable_css_biy9gtukhk2r2iu1thmz { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_4i57fwq6u6hvu0yt2i3c" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(5.960)</td>
                  <td data-row="2" data-col="2">(1.973)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.078)</td>
                  <td data-row="4" data-col="2">(0.028)</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb34"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># shape: multinomial model</span></span>
<span><span class="kw"><a href="https://rdrr.io/r/base/library.html">library</a></span><span class="op">(</span><span class="va"><a href="http://www.stats.ox.ac.uk/pub/MASS4/">nnet</a></span><span class="op">)</span></span>
<span><span class="va">multi</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/pkg/nnet/man/multinom.html">multinom</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/factor.html">factor</a></span><span class="op">(</span><span class="va">cyl</span><span class="op">)</span> <span class="op">~</span> <span class="va">mpg</span> <span class="op">+</span> <span class="va">hp</span>, data <span class="op">=</span> <span class="va">mtcars</span>, trace <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></span>
<span></span>
<span><span class="co"># shape: term names and group ids in rows, models in columns</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">multi</span>, shape <span class="op">=</span> <span class="va">response</span> <span class="op">~</span> <span class="va">model</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_tqo6cxy06883q58s4z7w(i, j, css_id) {
          var table = document.getElementById("tinytable_tqo6cxy06883q58s4z7w");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_tqo6cxy06883q58s4z7w(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_tqo6cxy06883q58s4z7w");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '18', j: 2 },  ], css_id: 'tinytable_css_k44v233o6foyzeka8idt',}, 
          { positions: [ { i: '12', j: 2 },  ], css_id: 'tinytable_css_6oizs63p3ju8ydnybizo',}, 
          { positions: [ { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '4', j: 2 }, { i: '5', j: 2 }, { i: '6', j: 2 }, { i: '7', j: 2 }, { i: '8', j: 2 }, { i: '9', j: 2 }, { i: '10', j: 2 }, { i: '11', j: 2 }, { i: '16', j: 2 }, { i: '13', j: 2 }, { i: '14', j: 2 }, { i: '15', j: 2 }, { i: '17', j: 2 },  ], css_id: 'tinytable_css_s6snnuyns4cd1jzpwcmy',}, 
          { positions: [ { i: '0', j: 2 },  ], css_id: 'tinytable_css_ey2kwkvwjwtrpfewic7g',}, 
          { positions: [ { i: '18', j: 0 }, { i: '18', j: 1 },  ], css_id: 'tinytable_css_i2kmnwe6jh471w8o1gck',}, 
          { positions: [ { i: '12', j: 0 }, { i: '12', j: 1 },  ], css_id: 'tinytable_css_ibbt4sjff46jxwn9qyya',}, 
          { positions: [ { i: '1', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '2', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 }, { i: '6', j: 1 }, { i: '13', j: 0 }, { i: '14', j: 0 }, { i: '15', j: 0 }, { i: '16', j: 0 }, { i: '17', j: 0 }, { i: '3', j: 1 }, { i: '6', j: 0 }, { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '7', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '14', j: 1 }, { i: '15', j: 1 }, { i: '16', j: 1 }, { i: '13', j: 1 }, { i: '17', j: 1 },  ], css_id: 'tinytable_css_vy0t3iqqbjb9zx84h6sd',}, 
          { positions: [ { i: '0', j: 0 }, { i: '0', j: 1 },  ], css_id: 'tinytable_css_mit5f1eqwu3ph58hjicp',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_tqo6cxy06883q58s4z7w(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_k44v233o6foyzeka8idt, .table th.tinytable_css_k44v233o6foyzeka8idt { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_6oizs63p3ju8ydnybizo, .table th.tinytable_css_6oizs63p3ju8ydnybizo { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_s6snnuyns4cd1jzpwcmy, .table th.tinytable_css_s6snnuyns4cd1jzpwcmy { text-align: center; }
      .table td.tinytable_css_ey2kwkvwjwtrpfewic7g, .table th.tinytable_css_ey2kwkvwjwtrpfewic7g { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_i2kmnwe6jh471w8o1gck, .table th.tinytable_css_i2kmnwe6jh471w8o1gck { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_ibbt4sjff46jxwn9qyya, .table th.tinytable_css_ibbt4sjff46jxwn9qyya { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_vy0t3iqqbjb9zx84h6sd, .table th.tinytable_css_vy0t3iqqbjb9zx84h6sd { text-align: left; }
      .table td.tinytable_css_mit5f1eqwu3ph58hjicp, .table th.tinytable_css_mit5f1eqwu3ph58hjicp { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_tqo6cxy06883q58s4z7w" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">response</th>
                <th scope="col" data-row="0" data-col="2">(1)</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">6</td>
                  <td data-row="1" data-col="2">0.500</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1"></td>
                  <td data-row="2" data-col="2">(41.760)</td>
                </tr>
<tr>
<td data-row="3" data-col="0"></td>
                  <td data-row="3" data-col="1">8</td>
                  <td data-row="3" data-col="2">8.400</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1"></td>
                  <td data-row="4" data-col="2">(0.502)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">mpg</td>
                  <td data-row="5" data-col="1">6</td>
                  <td data-row="5" data-col="2">-83.069</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(416.777)</td>
                </tr>
<tr>
<td data-row="7" data-col="0"></td>
                  <td data-row="7" data-col="1">8</td>
                  <td data-row="7" data-col="2">-120.167</td>
                </tr>
<tr>
<td data-row="8" data-col="0"></td>
                  <td data-row="8" data-col="1"></td>
                  <td data-row="8" data-col="2">(508.775)</td>
                </tr>
<tr>
<td data-row="9" data-col="0">hp</td>
                  <td data-row="9" data-col="1">6</td>
                  <td data-row="9" data-col="2">16.230</td>
                </tr>
<tr>
<td data-row="10" data-col="0"></td>
                  <td data-row="10" data-col="1"></td>
                  <td data-row="10" data-col="2">(81.808)</td>
                </tr>
<tr>
<td data-row="11" data-col="0"></td>
                  <td data-row="11" data-col="1">8</td>
                  <td data-row="11" data-col="2">20.307</td>
                </tr>
<tr>
<td data-row="12" data-col="0"></td>
                  <td data-row="12" data-col="1"></td>
                  <td data-row="12" data-col="2">(87.777)</td>
                </tr>
<tr>
<td data-row="13" data-col="0">Num.Obs.</td>
                  <td data-row="13" data-col="1"></td>
                  <td data-row="13" data-col="2">32</td>
                </tr>
<tr>
<td data-row="14" data-col="0">R2</td>
                  <td data-row="14" data-col="1"></td>
                  <td data-row="14" data-col="2">1.000</td>
                </tr>
<tr>
<td data-row="15" data-col="0">R2 Adj.</td>
                  <td data-row="15" data-col="1"></td>
                  <td data-row="15" data-col="2">0.971</td>
                </tr>
<tr>
<td data-row="16" data-col="0">AIC</td>
                  <td data-row="16" data-col="1"></td>
                  <td data-row="16" data-col="2">12.0</td>
                </tr>
<tr>
<td data-row="17" data-col="0">BIC</td>
                  <td data-row="17" data-col="1"></td>
                  <td data-row="17" data-col="2">20.8</td>
                </tr>
<tr>
<td data-row="18" data-col="0">RMSE</td>
                  <td data-row="18" data-col="1"></td>
                  <td data-row="18" data-col="2">0.00</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb35"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># shape: term names and group ids in rows in a single column</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">multi</span>, shape <span class="op">=</span> <span class="va">term</span><span class="op">:</span><span class="va">response</span> <span class="op">~</span> <span class="va">model</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_wztz50355tidp7x9wffw(i, j, css_id) {
          var table = document.getElementById("tinytable_wztz50355tidp7x9wffw");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_wztz50355tidp7x9wffw(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_wztz50355tidp7x9wffw");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '18', j: 1 },  ], css_id: 'tinytable_css_2lxxgo3jlgvlseci1c6p',}, 
          { positions: [ { i: '12', j: 1 },  ], css_id: 'tinytable_css_3jta1j1snsk0bu2lip9n',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '16', j: 1 }, { i: '13', j: 1 }, { i: '14', j: 1 }, { i: '15', j: 1 }, { i: '17', j: 1 },  ], css_id: 'tinytable_css_jq78qqfj0lgtwnt4gln6',}, 
          { positions: [ { i: '0', j: 1 },  ], css_id: 'tinytable_css_1ir4inj0lvzm0yccvq9o',}, 
          { positions: [ { i: '18', j: 0 },  ], css_id: 'tinytable_css_rmsapmu9o7zolhvm3qho',}, 
          { positions: [ { i: '12', j: 0 },  ], css_id: 'tinytable_css_1c7rrzayn596ecawc4wd',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 }, { i: '16', j: 0 }, { i: '13', j: 0 }, { i: '14', j: 0 }, { i: '15', j: 0 }, { i: '17', j: 0 },  ], css_id: 'tinytable_css_ajf2j91z5h4w3pa21t88',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_ph4q9mkr0jhwf0hrn6kw',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_wztz50355tidp7x9wffw(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_2lxxgo3jlgvlseci1c6p, .table th.tinytable_css_2lxxgo3jlgvlseci1c6p { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_3jta1j1snsk0bu2lip9n, .table th.tinytable_css_3jta1j1snsk0bu2lip9n { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_jq78qqfj0lgtwnt4gln6, .table th.tinytable_css_jq78qqfj0lgtwnt4gln6 { text-align: center; }
      .table td.tinytable_css_1ir4inj0lvzm0yccvq9o, .table th.tinytable_css_1ir4inj0lvzm0yccvq9o { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_rmsapmu9o7zolhvm3qho, .table th.tinytable_css_rmsapmu9o7zolhvm3qho { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_1c7rrzayn596ecawc4wd, .table th.tinytable_css_1c7rrzayn596ecawc4wd { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_ajf2j91z5h4w3pa21t88, .table th.tinytable_css_ajf2j91z5h4w3pa21t88 { text-align: left; }
      .table td.tinytable_css_ph4q9mkr0jhwf0hrn6kw, .table th.tinytable_css_ph4q9mkr0jhwf0hrn6kw { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_wztz50355tidp7x9wffw" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">(1)</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept) 6</td>
                  <td data-row="1" data-col="1">0.500</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(41.760)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">mpg 6</td>
                  <td data-row="3" data-col="1">-83.069</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(416.777)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">hp 6</td>
                  <td data-row="5" data-col="1">16.230</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1">(81.808)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">(Intercept) 8</td>
                  <td data-row="7" data-col="1">8.400</td>
                </tr>
<tr>
<td data-row="8" data-col="0"></td>
                  <td data-row="8" data-col="1">(0.502)</td>
                </tr>
<tr>
<td data-row="9" data-col="0">mpg 8</td>
                  <td data-row="9" data-col="1">-120.167</td>
                </tr>
<tr>
<td data-row="10" data-col="0"></td>
                  <td data-row="10" data-col="1">(508.775)</td>
                </tr>
<tr>
<td data-row="11" data-col="0">hp 8</td>
                  <td data-row="11" data-col="1">20.307</td>
                </tr>
<tr>
<td data-row="12" data-col="0"></td>
                  <td data-row="12" data-col="1">(87.777)</td>
                </tr>
<tr>
<td data-row="13" data-col="0">Num.Obs.</td>
                  <td data-row="13" data-col="1">32</td>
                </tr>
<tr>
<td data-row="14" data-col="0">R2</td>
                  <td data-row="14" data-col="1">1.000</td>
                </tr>
<tr>
<td data-row="15" data-col="0">R2 Adj.</td>
                  <td data-row="15" data-col="1">0.971</td>
                </tr>
<tr>
<td data-row="16" data-col="0">AIC</td>
                  <td data-row="16" data-col="1">12.0</td>
                </tr>
<tr>
<td data-row="17" data-col="0">BIC</td>
                  <td data-row="17" data-col="1">20.8</td>
                </tr>
<tr>
<td data-row="18" data-col="0">RMSE</td>
                  <td data-row="18" data-col="1">0.00</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb36"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># shape: term names in rows and group ids in columns</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">multi</span>, shape <span class="op">=</span> <span class="va">term</span> <span class="op">~</span> <span class="va">response</span><span class="op">:</span><span class="va">model</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_4m4y2braeuvdmqpttmox(i, j, css_id) {
          var table = document.getElementById("tinytable_4m4y2braeuvdmqpttmox");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_4m4y2braeuvdmqpttmox(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_4m4y2braeuvdmqpttmox");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '-1', j: 2 },  ], css_id: 'tinytable_css_iqq1t0kwtv191hnmps4r',}, 
          { positions: [ { i: '12', j: 2 }, { i: '12', j: 1 },  ], css_id: 'tinytable_css_c0ksj06ty16npuxz078h',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_tl1afqsvqq3o215ax3fd',}, 
          { positions: [ { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '1', j: 1 }, { i: '5', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '5', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '11', j: 2 }, { i: '9', j: 1 }, { i: '4', j: 2 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '8', j: 2 }, { i: '9', j: 2 }, { i: '10', j: 2 }, { i: '7', j: 2 },  ], css_id: 'tinytable_css_dcz31t5ghjew0a27ia5s',}, 
          { positions: [ { i: '-1', j: 1 },  ], css_id: 'tinytable_css_m355evrfvl90szbp0372',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_1lp9vkoujdyw54vffdc8',}, 
          { positions: [ { i: '12', j: 0 },  ], css_id: 'tinytable_css_takw86bvakuijq4w9mhk',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_x2idonw6enxj0zl8sa2d',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '11', j: 0 },  ], css_id: 'tinytable_css_fgoyaqmm0l9ydiivhnfk',}, 
          { positions: [ { i: '-1', j: 0 },  ], css_id: 'tinytable_css_q966tg57x4fxbnm9qexx',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_jgitnrwvylngf52bqoo1',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_4m4y2braeuvdmqpttmox(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_iqq1t0kwtv191hnmps4r, .table th.tinytable_css_iqq1t0kwtv191hnmps4r { text-align: center; text-align: center; border-top: solid #d3d8dc 0.1em; text-align: center; }
      .table td.tinytable_css_c0ksj06ty16npuxz078h, .table th.tinytable_css_c0ksj06ty16npuxz078h { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_tl1afqsvqq3o215ax3fd, .table th.tinytable_css_tl1afqsvqq3o215ax3fd { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_dcz31t5ghjew0a27ia5s, .table th.tinytable_css_dcz31t5ghjew0a27ia5s { text-align: center; }
      .table td.tinytable_css_m355evrfvl90szbp0372, .table th.tinytable_css_m355evrfvl90szbp0372 { text-align: center; text-align: center; border-top: solid #d3d8dc 0.1em; text-align: center; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_1lp9vkoujdyw54vffdc8, .table th.tinytable_css_1lp9vkoujdyw54vffdc8 { text-align: center; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_takw86bvakuijq4w9mhk, .table th.tinytable_css_takw86bvakuijq4w9mhk { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_x2idonw6enxj0zl8sa2d, .table th.tinytable_css_x2idonw6enxj0zl8sa2d { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_fgoyaqmm0l9ydiivhnfk, .table th.tinytable_css_fgoyaqmm0l9ydiivhnfk { text-align: left; }
      .table td.tinytable_css_q966tg57x4fxbnm9qexx, .table th.tinytable_css_q966tg57x4fxbnm9qexx { text-align: left; text-align: center; border-top: solid #d3d8dc 0.1em; text-align: center; }
      .table td.tinytable_css_jgitnrwvylngf52bqoo1, .table th.tinytable_css_jgitnrwvylngf52bqoo1 { text-align: left; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_4m4y2braeuvdmqpttmox" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead>
<tr>
<th scope="col" align="center" colspan="1" data-row="-1" data-col="0"> </th>
<th scope="col" align="center" colspan="2" data-row="-1" data-col="1">(1)</th>
</tr>
<tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">6</th>
                <th scope="col" data-row="0" data-col="2">8</th>
              </tr>
</thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">0.500</td>
                  <td data-row="1" data-col="2">8.400</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(41.760)</td>
                  <td data-row="2" data-col="2">(0.502)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">mpg</td>
                  <td data-row="3" data-col="1">-83.069</td>
                  <td data-row="3" data-col="2">-120.167</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(416.777)</td>
                  <td data-row="4" data-col="2">(508.775)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">hp</td>
                  <td data-row="5" data-col="1">16.230</td>
                  <td data-row="5" data-col="2">20.307</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1">(81.808)</td>
                  <td data-row="6" data-col="2">(87.777)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Num.Obs.</td>
                  <td data-row="7" data-col="1">32</td>
                  <td data-row="7" data-col="2"></td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2</td>
                  <td data-row="8" data-col="1">1.000</td>
                  <td data-row="8" data-col="2"></td>
                </tr>
<tr>
<td data-row="9" data-col="0">R2 Adj.</td>
                  <td data-row="9" data-col="1">0.971</td>
                  <td data-row="9" data-col="2"></td>
                </tr>
<tr>
<td data-row="10" data-col="0">AIC</td>
                  <td data-row="10" data-col="1">12.0</td>
                  <td data-row="10" data-col="2"></td>
                </tr>
<tr>
<td data-row="11" data-col="0">BIC</td>
                  <td data-row="11" data-col="1">20.8</td>
                  <td data-row="11" data-col="2"></td>
                </tr>
<tr>
<td data-row="12" data-col="0">RMSE</td>
                  <td data-row="12" data-col="1">0.00</td>
                  <td data-row="12" data-col="2"></td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb37"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># shape = "rcollapse"</span></span>
<span><span class="va">panels</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html">list</a></span><span class="op">(</span></span>
<span>  <span class="st">"Panel A: MPG"</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html">list</a></span><span class="op">(</span></span>
<span>    <span class="st">"A"</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/stats/lm.html">lm</a></span><span class="op">(</span><span class="va">mpg</span> <span class="op">~</span> <span class="va">hp</span>, data <span class="op">=</span> <span class="va">mtcars</span><span class="op">)</span>,</span>
<span>    <span class="st">"B"</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/stats/lm.html">lm</a></span><span class="op">(</span><span class="va">mpg</span> <span class="op">~</span> <span class="va">hp</span> <span class="op">+</span> <span class="fu"><a href="https://rdrr.io/r/base/factor.html">factor</a></span><span class="op">(</span><span class="va">gear</span><span class="op">)</span>, data <span class="op">=</span> <span class="va">mtcars</span><span class="op">)</span><span class="op">)</span>,</span>
<span>  <span class="st">"Panel B: Displacement"</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html">list</a></span><span class="op">(</span></span>
<span>    <span class="st">"A"</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/stats/lm.html">lm</a></span><span class="op">(</span><span class="va">disp</span> <span class="op">~</span> <span class="va">hp</span>, data <span class="op">=</span> <span class="va">mtcars</span><span class="op">)</span>,</span>
<span>    <span class="st">"C"</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/stats/lm.html">lm</a></span><span class="op">(</span><span class="va">disp</span> <span class="op">~</span> <span class="va">hp</span> <span class="op">+</span> <span class="fu"><a href="https://rdrr.io/r/base/factor.html">factor</a></span><span class="op">(</span><span class="va">gear</span><span class="op">)</span>, data <span class="op">=</span> <span class="va">mtcars</span><span class="op">)</span><span class="op">)</span></span>
<span><span class="op">)</span></span>
<span></span>
<span><span class="co"># shape = "cbind"</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">panels</span>, shape <span class="op">=</span> <span class="st">"cbind"</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_pqrjpf9wgjojguhsd8co(i, j, css_id) {
          var table = document.getElementById("tinytable_pqrjpf9wgjojguhsd8co");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_pqrjpf9wgjojguhsd8co(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_pqrjpf9wgjojguhsd8co");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '-1', j: 4 }, { i: '-1', j: 3 },  ], css_id: 'tinytable_css_15hy788568h3yinqtsuk',}, 
          { positions: [ { i: '16', j: 2 }, { i: '16', j: 4 }, { i: '16', j: 1 }, { i: '16', j: 3 },  ], css_id: 'tinytable_css_9bggywvvtjhgzbwjwkc8',}, 
          { positions: [ { i: '8', j: 2 }, { i: '8', j: 4 }, { i: '8', j: 1 }, { i: '8', j: 3 },  ], css_id: 'tinytable_css_f7qnsrzqco3c8mtc3o4k',}, 
          { positions: [ { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '3', j: 2 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '1', j: 1 }, { i: '15', j: 1 }, { i: '11', j: 2 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '11', j: 3 }, { i: '9', j: 1 }, { i: '5', j: 2 }, { i: '6', j: 2 }, { i: '7', j: 2 }, { i: '3', j: 3 }, { i: '14', j: 1 }, { i: '10', j: 2 }, { i: '6', j: 3 }, { i: '12', j: 2 }, { i: '13', j: 2 }, { i: '14', j: 2 }, { i: '15', j: 2 }, { i: '6', j: 4 }, { i: '4', j: 2 }, { i: '13', j: 3 }, { i: '1', j: 3 }, { i: '2', j: 3 }, { i: '11', j: 4 }, { i: '9', j: 2 }, { i: '5', j: 3 }, { i: '1', j: 4 }, { i: '7', j: 3 }, { i: '3', j: 4 }, { i: '9', j: 3 }, { i: '10', j: 3 }, { i: '15', j: 3 }, { i: '12', j: 3 }, { i: '4', j: 3 }, { i: '14', j: 3 }, { i: '14', j: 4 }, { i: '2', j: 4 }, { i: '7', j: 4 }, { i: '13', j: 4 }, { i: '5', j: 4 }, { i: '10', j: 4 }, { i: '15', j: 4 }, { i: '4', j: 4 }, { i: '9', j: 4 }, { i: '12', j: 4 },  ], css_id: 'tinytable_css_htedh7tq2cvjkk6rfx9w',}, 
          { positions: [ { i: '-1', j: 1 }, { i: '-1', j: 2 },  ], css_id: 'tinytable_css_qt8qq4p03xzitiwunp8r',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 }, { i: '0', j: 4 }, { i: '0', j: 3 },  ], css_id: 'tinytable_css_vjck1bj6ut9y5dzh4yj4',}, 
          { positions: [ { i: '16', j: 0 },  ], css_id: 'tinytable_css_rjormkslu3t7ceafm9bl',}, 
          { positions: [ { i: '8', j: 0 },  ], css_id: 'tinytable_css_0t0pnk9kkmifshtzv0fz',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '7', j: 0 }, { i: '12', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 }, { i: '13', j: 0 }, { i: '14', j: 0 }, { i: '15', j: 0 },  ], css_id: 'tinytable_css_slqd1qtu8ei2by4vygln',}, 
          { positions: [ { i: '-1', j: 0 },  ], css_id: 'tinytable_css_ucyk1i44whih7nw0siam',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_9snp49inf83xd5kg3q1t',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_pqrjpf9wgjojguhsd8co(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_15hy788568h3yinqtsuk, .table th.tinytable_css_15hy788568h3yinqtsuk { text-align: center; border-top: solid #d3d8dc 0.1em; text-align: center; }
      .table td.tinytable_css_9bggywvvtjhgzbwjwkc8, .table th.tinytable_css_9bggywvvtjhgzbwjwkc8 { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_f7qnsrzqco3c8mtc3o4k, .table th.tinytable_css_f7qnsrzqco3c8mtc3o4k { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_htedh7tq2cvjkk6rfx9w, .table th.tinytable_css_htedh7tq2cvjkk6rfx9w { text-align: center; }
      .table td.tinytable_css_qt8qq4p03xzitiwunp8r, .table th.tinytable_css_qt8qq4p03xzitiwunp8r { text-align: center; border-top: solid #d3d8dc 0.1em; text-align: center; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_vjck1bj6ut9y5dzh4yj4, .table th.tinytable_css_vjck1bj6ut9y5dzh4yj4 { text-align: center; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_rjormkslu3t7ceafm9bl, .table th.tinytable_css_rjormkslu3t7ceafm9bl { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_0t0pnk9kkmifshtzv0fz, .table th.tinytable_css_0t0pnk9kkmifshtzv0fz { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_slqd1qtu8ei2by4vygln, .table th.tinytable_css_slqd1qtu8ei2by4vygln { text-align: left; }
      .table td.tinytable_css_ucyk1i44whih7nw0siam, .table th.tinytable_css_ucyk1i44whih7nw0siam { text-align: left; border-top: solid #d3d8dc 0.1em; text-align: center; }
      .table td.tinytable_css_9snp49inf83xd5kg3q1t, .table th.tinytable_css_9snp49inf83xd5kg3q1t { text-align: left; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_pqrjpf9wgjojguhsd8co" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead>
<tr>
<th scope="col" align="center" colspan="1" data-row="-1" data-col="0"> </th>
<th scope="col" align="center" colspan="2" data-row="-1" data-col="1">Panel A: MPG</th>
<th scope="col" align="center" colspan="2" data-row="-1" data-col="2">Panel B: Displacement</th>
</tr>
<tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">A</th>
                <th scope="col" data-row="0" data-col="2">B</th>
                <th scope="col" data-row="0" data-col="3">A </th>
                <th scope="col" data-row="0" data-col="4">C</th>
              </tr>
</thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">30.099</td>
                  <td data-row="1" data-col="2">27.882</td>
                  <td data-row="1" data-col="3">20.992</td>
                  <td data-row="1" data-col="4">112.093</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(1.634)</td>
                  <td data-row="2" data-col="2">(2.109)</td>
                  <td data-row="2" data-col="3">(32.607)</td>
                  <td data-row="2" data-col="4">(34.704)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">hp</td>
                  <td data-row="3" data-col="1">-0.068</td>
                  <td data-row="3" data-col="2">-0.067</td>
                  <td data-row="3" data-col="3">1.430</td>
                  <td data-row="3" data-col="4">1.216</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.010)</td>
                  <td data-row="4" data-col="2">(0.011)</td>
                  <td data-row="4" data-col="3">(0.202)</td>
                  <td data-row="4" data-col="4">(0.182)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">factor(gear)4</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">2.635</td>
                  <td data-row="5" data-col="3"></td>
                  <td data-row="5" data-col="4">-97.923</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(1.552)</td>
                  <td data-row="6" data-col="3"></td>
                  <td data-row="6" data-col="4">(25.532)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">factor(gear)5</td>
                  <td data-row="7" data-col="1"></td>
                  <td data-row="7" data-col="2">6.575</td>
                  <td data-row="7" data-col="3"></td>
                  <td data-row="7" data-col="4">-147.495</td>
                </tr>
<tr>
<td data-row="8" data-col="0"></td>
                  <td data-row="8" data-col="1"></td>
                  <td data-row="8" data-col="2">(1.643)</td>
                  <td data-row="8" data-col="3"></td>
                  <td data-row="8" data-col="4">(27.030)</td>
                </tr>
<tr>
<td data-row="9" data-col="0">Num.Obs.</td>
                  <td data-row="9" data-col="1">32</td>
                  <td data-row="9" data-col="2">32</td>
                  <td data-row="9" data-col="3">32</td>
                  <td data-row="9" data-col="4">32</td>
                </tr>
<tr>
<td data-row="10" data-col="0">R2</td>
                  <td data-row="10" data-col="1">0.602</td>
                  <td data-row="10" data-col="2">0.753</td>
                  <td data-row="10" data-col="3">0.626</td>
                  <td data-row="10" data-col="4">0.842</td>
                </tr>
<tr>
<td data-row="11" data-col="0">R2 Adj.</td>
                  <td data-row="11" data-col="1">0.589</td>
                  <td data-row="11" data-col="2">0.726</td>
                  <td data-row="11" data-col="3">0.613</td>
                  <td data-row="11" data-col="4">0.825</td>
                </tr>
<tr>
<td data-row="12" data-col="0">AIC</td>
                  <td data-row="12" data-col="1">181.2</td>
                  <td data-row="12" data-col="2">170.0</td>
                  <td data-row="12" data-col="3">372.8</td>
                  <td data-row="12" data-col="4">349.3</td>
                </tr>
<tr>
<td data-row="13" data-col="0">BIC</td>
                  <td data-row="13" data-col="1">185.6</td>
                  <td data-row="13" data-col="2">177.4</td>
                  <td data-row="13" data-col="3">377.2</td>
                  <td data-row="13" data-col="4">356.6</td>
                </tr>
<tr>
<td data-row="14" data-col="0">Log.Lik.</td>
                  <td data-row="14" data-col="1">-87.619</td>
                  <td data-row="14" data-col="2">-80.024</td>
                  <td data-row="14" data-col="3">-183.412</td>
                  <td data-row="14" data-col="4">-169.643</td>
                </tr>
<tr>
<td data-row="15" data-col="0">F</td>
                  <td data-row="15" data-col="1">45.460</td>
                  <td data-row="15" data-col="2">28.407</td>
                  <td data-row="15" data-col="3">50.128</td>
                  <td data-row="15" data-col="4">49.611</td>
                </tr>
<tr>
<td data-row="16" data-col="0">RMSE</td>
                  <td data-row="16" data-col="1">3.74</td>
                  <td data-row="16" data-col="2">2.95</td>
                  <td data-row="16" data-col="3">74.64</td>
                  <td data-row="16" data-col="4">48.54</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb38"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span></span>
<span>  <span class="va">panels</span>,</span>
<span>  shape <span class="op">=</span> <span class="st">"rbind"</span>,</span>
<span>  gof_map <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html">c</a></span><span class="op">(</span><span class="st">"nobs"</span>, <span class="st">"r.squared"</span><span class="op">)</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_af0jhmrid5dm6dbjxsj3(i, j, css_id) {
          var table = document.getElementById("tinytable_af0jhmrid5dm6dbjxsj3");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_af0jhmrid5dm6dbjxsj3(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_af0jhmrid5dm6dbjxsj3");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () { spanCell_af0jhmrid5dm6dbjxsj3(12, 0, 1, 4) })
      window.addEventListener('load', function () { spanCell_af0jhmrid5dm6dbjxsj3(1, 0, 1, 4) })
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '22', j: 1 }, { i: '22', j: 2 }, { i: '22', j: 3 },  ], css_id: 'tinytable_css_00b6hrswpjz06x8vyrsz',}, 
          { positions: [ { i: '1', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '6', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '14', j: 1 }, { i: '15', j: 1 }, { i: '16', j: 1 }, { i: '17', j: 1 }, { i: '18', j: 1 }, { i: '19', j: 1 }, { i: '7', j: 1 }, { i: '21', j: 1 }, { i: '12', j: 2 }, { i: '10', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '4', j: 2 }, { i: '5', j: 2 }, { i: '6', j: 2 }, { i: '7', j: 2 }, { i: '8', j: 2 }, { i: '9', j: 2 }, { i: '20', j: 1 }, { i: '11', j: 2 }, { i: '2', j: 3 }, { i: '13', j: 2 }, { i: '14', j: 2 }, { i: '15', j: 2 }, { i: '16', j: 2 }, { i: '17', j: 2 }, { i: '18', j: 2 }, { i: '19', j: 2 }, { i: '20', j: 2 }, { i: '21', j: 2 }, { i: '12', j: 3 }, { i: '10', j: 2 }, { i: '1', j: 3 }, { i: '15', j: 3 }, { i: '3', j: 3 }, { i: '4', j: 3 }, { i: '5', j: 3 }, { i: '6', j: 3 }, { i: '7', j: 3 }, { i: '8', j: 3 }, { i: '9', j: 3 }, { i: '10', j: 3 }, { i: '11', j: 3 }, { i: '16', j: 3 }, { i: '13', j: 3 }, { i: '14', j: 3 }, { i: '19', j: 3 }, { i: '20', j: 3 }, { i: '17', j: 3 }, { i: '18', j: 3 }, { i: '21', j: 3 },  ], css_id: 'tinytable_css_ij7xycdn0ioyptm7qmj1',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 }, { i: '0', j: 3 },  ], css_id: 'tinytable_css_b6clz01hpliv7uonji4k',}, 
          { positions: [ { i: '22', j: 0 },  ], css_id: 'tinytable_css_imdc67hlq9008zfaq01n',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 }, { i: '14', j: 0 }, { i: '15', j: 0 }, { i: '16', j: 0 }, { i: '17', j: 0 }, { i: '18', j: 0 }, { i: '19', j: 0 }, { i: '20', j: 0 }, { i: '21', j: 0 },  ], css_id: 'tinytable_css_rtvmvpnk1mw9f033ee1c',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_hrfyzvil1hyn0do7n800',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_af0jhmrid5dm6dbjxsj3(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_00b6hrswpjz06x8vyrsz, .table th.tinytable_css_00b6hrswpjz06x8vyrsz { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_ij7xycdn0ioyptm7qmj1, .table th.tinytable_css_ij7xycdn0ioyptm7qmj1 { text-align: center; }
      .table td.tinytable_css_b6clz01hpliv7uonji4k, .table th.tinytable_css_b6clz01hpliv7uonji4k { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_imdc67hlq9008zfaq01n, .table th.tinytable_css_imdc67hlq9008zfaq01n { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_rtvmvpnk1mw9f033ee1c, .table th.tinytable_css_rtvmvpnk1mw9f033ee1c { text-align: left; }
      .table td.tinytable_css_hrfyzvil1hyn0do7n800, .table th.tinytable_css_hrfyzvil1hyn0do7n800 { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_af0jhmrid5dm6dbjxsj3" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">A</th>
                <th scope="col" data-row="0" data-col="2">B</th>
                <th scope="col" data-row="0" data-col="3">C</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">Panel A: MPG</td>
                  <td data-row="1" data-col="1">Panel A: MPG</td>
                  <td data-row="1" data-col="2">Panel A: MPG</td>
                  <td data-row="1" data-col="3">Panel A: MPG</td>
                </tr>
<tr>
<td data-row="2" data-col="0">(Intercept)</td>
                  <td data-row="2" data-col="1">30.099</td>
                  <td data-row="2" data-col="2">27.882</td>
                  <td data-row="2" data-col="3"></td>
                </tr>
<tr>
<td data-row="3" data-col="0"></td>
                  <td data-row="3" data-col="1">(1.634)</td>
                  <td data-row="3" data-col="2">(2.109)</td>
                  <td data-row="3" data-col="3"></td>
                </tr>
<tr>
<td data-row="4" data-col="0">hp</td>
                  <td data-row="4" data-col="1">-0.068</td>
                  <td data-row="4" data-col="2">-0.067</td>
                  <td data-row="4" data-col="3"></td>
                </tr>
<tr>
<td data-row="5" data-col="0"></td>
                  <td data-row="5" data-col="1">(0.010)</td>
                  <td data-row="5" data-col="2">(0.011)</td>
                  <td data-row="5" data-col="3"></td>
                </tr>
<tr>
<td data-row="6" data-col="0">factor(gear)4</td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">2.635</td>
                  <td data-row="6" data-col="3"></td>
                </tr>
<tr>
<td data-row="7" data-col="0"></td>
                  <td data-row="7" data-col="1"></td>
                  <td data-row="7" data-col="2">(1.552)</td>
                  <td data-row="7" data-col="3"></td>
                </tr>
<tr>
<td data-row="8" data-col="0">factor(gear)5</td>
                  <td data-row="8" data-col="1"></td>
                  <td data-row="8" data-col="2">6.575</td>
                  <td data-row="8" data-col="3"></td>
                </tr>
<tr>
<td data-row="9" data-col="0"></td>
                  <td data-row="9" data-col="1"></td>
                  <td data-row="9" data-col="2">(1.643)</td>
                  <td data-row="9" data-col="3"></td>
                </tr>
<tr>
<td data-row="10" data-col="0">Num.Obs.</td>
                  <td data-row="10" data-col="1">32</td>
                  <td data-row="10" data-col="2">32</td>
                  <td data-row="10" data-col="3"></td>
                </tr>
<tr>
<td data-row="11" data-col="0">R2</td>
                  <td data-row="11" data-col="1">0.602</td>
                  <td data-row="11" data-col="2">0.753</td>
                  <td data-row="11" data-col="3"></td>
                </tr>
<tr>
<td data-row="12" data-col="0">Panel B: Displacement</td>
                  <td data-row="12" data-col="1">Panel B: Displacement</td>
                  <td data-row="12" data-col="2">Panel B: Displacement</td>
                  <td data-row="12" data-col="3">Panel B: Displacement</td>
                </tr>
<tr>
<td data-row="13" data-col="0">(Intercept)</td>
                  <td data-row="13" data-col="1">20.992</td>
                  <td data-row="13" data-col="2"></td>
                  <td data-row="13" data-col="3">112.093</td>
                </tr>
<tr>
<td data-row="14" data-col="0"></td>
                  <td data-row="14" data-col="1">(32.607)</td>
                  <td data-row="14" data-col="2"></td>
                  <td data-row="14" data-col="3">(34.704)</td>
                </tr>
<tr>
<td data-row="15" data-col="0">hp</td>
                  <td data-row="15" data-col="1">1.430</td>
                  <td data-row="15" data-col="2"></td>
                  <td data-row="15" data-col="3">1.216</td>
                </tr>
<tr>
<td data-row="16" data-col="0"></td>
                  <td data-row="16" data-col="1">(0.202)</td>
                  <td data-row="16" data-col="2"></td>
                  <td data-row="16" data-col="3">(0.182)</td>
                </tr>
<tr>
<td data-row="17" data-col="0">factor(gear)4</td>
                  <td data-row="17" data-col="1"></td>
                  <td data-row="17" data-col="2"></td>
                  <td data-row="17" data-col="3">-97.923</td>
                </tr>
<tr>
<td data-row="18" data-col="0"></td>
                  <td data-row="18" data-col="1"></td>
                  <td data-row="18" data-col="2"></td>
                  <td data-row="18" data-col="3">(25.532)</td>
                </tr>
<tr>
<td data-row="19" data-col="0">factor(gear)5</td>
                  <td data-row="19" data-col="1"></td>
                  <td data-row="19" data-col="2"></td>
                  <td data-row="19" data-col="3">-147.495</td>
                </tr>
<tr>
<td data-row="20" data-col="0"></td>
                  <td data-row="20" data-col="1"></td>
                  <td data-row="20" data-col="2"></td>
                  <td data-row="20" data-col="3">(27.030)</td>
                </tr>
<tr>
<td data-row="21" data-col="0">Num.Obs.</td>
                  <td data-row="21" data-col="1">32</td>
                  <td data-row="21" data-col="2"></td>
                  <td data-row="21" data-col="3">32</td>
                </tr>
<tr>
<td data-row="22" data-col="0">R2</td>
                  <td data-row="22" data-col="1">0.626</td>
                  <td data-row="22" data-col="2"></td>
                  <td data-row="22" data-col="3">0.842</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb39"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># title</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, title <span class="op">=</span> <span class="st">"This is the title"</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_3td9hkkocftjaywnrhwb(i, j, css_id) {
          var table = document.getElementById("tinytable_3td9hkkocftjaywnrhwb");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_3td9hkkocftjaywnrhwb(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_3td9hkkocftjaywnrhwb");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '14', j: 1 }, { i: '14', j: 2 },  ], css_id: 'tinytable_css_oiczqtkijqegp2pe2kct',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_oe6j2qt83vegpi9kdee1',}, 
          { positions: [ { i: '1', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '4', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '12', j: 2 }, { i: '2', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '10', j: 2 }, { i: '7', j: 2 }, { i: '9', j: 2 }, { i: '11', j: 2 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_8gs8e95f4ro17qqjlg6d',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_h1i5co62xfccj0wvfi23',}, 
          { positions: [ { i: '14', j: 0 },  ], css_id: 'tinytable_css_jyaohrrmcaq842d201sy',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_5lo570q3m65umnyzm9hg',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 },  ], css_id: 'tinytable_css_agiwnjuoxxgi58wxy8kx',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_mlgpqdaf0vwrxq9474qk',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_3td9hkkocftjaywnrhwb(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_oiczqtkijqegp2pe2kct, .table th.tinytable_css_oiczqtkijqegp2pe2kct { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_oe6j2qt83vegpi9kdee1, .table th.tinytable_css_oe6j2qt83vegpi9kdee1 { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_8gs8e95f4ro17qqjlg6d, .table th.tinytable_css_8gs8e95f4ro17qqjlg6d { text-align: center; }
      .table td.tinytable_css_h1i5co62xfccj0wvfi23, .table th.tinytable_css_h1i5co62xfccj0wvfi23 { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_jyaohrrmcaq842d201sy, .table th.tinytable_css_jyaohrrmcaq842d201sy { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_5lo570q3m65umnyzm9hg, .table th.tinytable_css_5lo570q3m65umnyzm9hg { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_agiwnjuoxxgi58wxy8kx, .table th.tinytable_css_agiwnjuoxxgi58wxy8kx { text-align: left; }
      .table td.tinytable_css_mlgpqdaf0vwrxq9474qk, .table th.tinytable_css_mlgpqdaf0vwrxq9474qk { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_3td9hkkocftjaywnrhwb" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead>
</thead><caption>This is the title</caption>
              <tbody><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr>

</tbody><tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(5.960)</td>
                  <td data-row="2" data-col="2">(1.973)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.078)</td>
                  <td data-row="4" data-col="2">(0.028)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Volume</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(0.011)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Num.Obs.</td>
                  <td data-row="7" data-col="1">31</td>
                  <td data-row="7" data-col="2">31</td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2</td>
                  <td data-row="8" data-col="1">0.270</td>
                  <td data-row="8" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="9" data-col="0">R2 Adj.</td>
                  <td data-row="9" data-col="1">0.244</td>
                  <td data-row="9" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="10" data-col="0">AIC</td>
                  <td data-row="10" data-col="1">154.1</td>
                  <td data-row="10" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="11" data-col="0">BIC</td>
                  <td data-row="11" data-col="1">158.4</td>
                  <td data-row="11" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="12" data-col="0">Log.Lik.</td>
                  <td data-row="12" data-col="1">-74.061</td>
                  <td data-row="12" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="13" data-col="0">F</td>
                  <td data-row="13" data-col="1">10.707</td>
                  <td data-row="13" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="14" data-col="0">RMSE</td>
                  <td data-row="14" data-col="1">2.64</td>
                  <td data-row="14" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb40"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># title with LaTeX label (for numbering and referencing)</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, title <span class="op">=</span> <span class="st">"This is the title \\label{tab:description}"</span>, escape <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_jcbwa65064yzocvhc8fw(i, j, css_id) {
          var table = document.getElementById("tinytable_jcbwa65064yzocvhc8fw");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_jcbwa65064yzocvhc8fw(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_jcbwa65064yzocvhc8fw");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '14', j: 1 }, { i: '14', j: 2 },  ], css_id: 'tinytable_css_zbg8nllpyqgja4gu5btl',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_1tfs1q43m7rjl78jby35',}, 
          { positions: [ { i: '1', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '4', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '12', j: 2 }, { i: '2', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '10', j: 2 }, { i: '7', j: 2 }, { i: '9', j: 2 }, { i: '11', j: 2 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_3cxnya1qqjphhn82u1e0',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_0vcw2kekqsvcp7cj7i1h',}, 
          { positions: [ { i: '14', j: 0 },  ], css_id: 'tinytable_css_4ooirbq4lljyil8tgnw8',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_davl1tb7660f23fyaeb1',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 },  ], css_id: 'tinytable_css_lupo867q3q9zf14dy0sa',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_ru1v8os4cioac8ltei6z',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_jcbwa65064yzocvhc8fw(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_zbg8nllpyqgja4gu5btl, .table th.tinytable_css_zbg8nllpyqgja4gu5btl { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_1tfs1q43m7rjl78jby35, .table th.tinytable_css_1tfs1q43m7rjl78jby35 { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_3cxnya1qqjphhn82u1e0, .table th.tinytable_css_3cxnya1qqjphhn82u1e0 { text-align: center; }
      .table td.tinytable_css_0vcw2kekqsvcp7cj7i1h, .table th.tinytable_css_0vcw2kekqsvcp7cj7i1h { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_4ooirbq4lljyil8tgnw8, .table th.tinytable_css_4ooirbq4lljyil8tgnw8 { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_davl1tb7660f23fyaeb1, .table th.tinytable_css_davl1tb7660f23fyaeb1 { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_lupo867q3q9zf14dy0sa, .table th.tinytable_css_lupo867q3q9zf14dy0sa { text-align: left; }
      .table td.tinytable_css_ru1v8os4cioac8ltei6z, .table th.tinytable_css_ru1v8os4cioac8ltei6z { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_jcbwa65064yzocvhc8fw" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead>
</thead><caption>This is the title \label{tab:description}</caption>
              <tbody><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr>

</tbody><tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(5.960)</td>
                  <td data-row="2" data-col="2">(1.973)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.078)</td>
                  <td data-row="4" data-col="2">(0.028)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Volume</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(0.011)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Num.Obs.</td>
                  <td data-row="7" data-col="1">31</td>
                  <td data-row="7" data-col="2">31</td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2</td>
                  <td data-row="8" data-col="1">0.270</td>
                  <td data-row="8" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="9" data-col="0">R2 Adj.</td>
                  <td data-row="9" data-col="1">0.244</td>
                  <td data-row="9" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="10" data-col="0">AIC</td>
                  <td data-row="10" data-col="1">154.1</td>
                  <td data-row="10" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="11" data-col="0">BIC</td>
                  <td data-row="11" data-col="1">158.4</td>
                  <td data-row="11" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="12" data-col="0">Log.Lik.</td>
                  <td data-row="12" data-col="1">-74.061</td>
                  <td data-row="12" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="13" data-col="0">F</td>
                  <td data-row="13" data-col="1">10.707</td>
                  <td data-row="13" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="14" data-col="0">RMSE</td>
                  <td data-row="14" data-col="1">2.64</td>
                  <td data-row="14" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb41"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># add_rows</span></span>
<span><span class="va">rows</span> <span class="op">&lt;-</span> <span class="fu">tibble</span><span class="fu">::</span><span class="fu"><a href="https://tibble.tidyverse.org/reference/tribble.html">tribble</a></span><span class="op">(</span></span>
<span>  <span class="op">~</span><span class="va">term</span>, <span class="op">~</span><span class="va">Bivariate</span>, <span class="op">~</span><span class="va">Multivariate</span>,</span>
<span>  <span class="st">"Empty row"</span>, <span class="st">"-"</span>, <span class="st">"-"</span>,</span>
<span>  <span class="st">"Another empty row"</span>, <span class="st">"?"</span>, <span class="st">"?"</span><span class="op">)</span></span>
<span><span class="fu"><a href="https://rdrr.io/r/base/attr.html">attr</a></span><span class="op">(</span><span class="va">rows</span>, <span class="st">"position"</span><span class="op">)</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html">c</a></span><span class="op">(</span><span class="fl">1</span>, <span class="fl">3</span><span class="op">)</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, add_rows <span class="op">=</span> <span class="va">rows</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_1cfkz44uzvb660eedx8t(i, j, css_id) {
          var table = document.getElementById("tinytable_1cfkz44uzvb660eedx8t");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_1cfkz44uzvb660eedx8t(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_1cfkz44uzvb660eedx8t");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '16', j: 1 }, { i: '16', j: 2 },  ], css_id: 'tinytable_css_bta3wp0vy52552na52w1',}, 
          { positions: [ { i: '8', j: 1 }, { i: '8', j: 2 },  ], css_id: 'tinytable_css_bx89rx8dmup4ivbl2k4o',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '5', j: 1 }, { i: '6', j: 1 }, { i: '7', j: 1 }, { i: '4', j: 2 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '14', j: 1 }, { i: '15', j: 1 }, { i: '12', j: 2 }, { i: '4', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '5', j: 2 }, { i: '6', j: 2 }, { i: '7', j: 2 }, { i: '9', j: 2 }, { i: '10', j: 2 }, { i: '11', j: 2 }, { i: '13', j: 2 }, { i: '14', j: 2 }, { i: '15', j: 2 },  ], css_id: 'tinytable_css_gxwuanxmqcjmrprdewsw',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_yg0ow8waql4maorg1y82',}, 
          { positions: [ { i: '16', j: 0 },  ], css_id: 'tinytable_css_7ly73lldzlrs3aun2rbz',}, 
          { positions: [ { i: '8', j: 0 },  ], css_id: 'tinytable_css_frqiefrunpcf7gnj7m5a',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '6', j: 0 }, { i: '7', j: 0 }, { i: '12', j: 0 }, { i: '9', j: 0 }, { i: '10', j: 0 }, { i: '11', j: 0 }, { i: '13', j: 0 }, { i: '14', j: 0 }, { i: '15', j: 0 },  ], css_id: 'tinytable_css_saa6ml5hrpoaw0d9vjv2',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_9wmeasf4ceafu6ldfxbo',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_1cfkz44uzvb660eedx8t(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_bta3wp0vy52552na52w1, .table th.tinytable_css_bta3wp0vy52552na52w1 { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_bx89rx8dmup4ivbl2k4o, .table th.tinytable_css_bx89rx8dmup4ivbl2k4o { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_gxwuanxmqcjmrprdewsw, .table th.tinytable_css_gxwuanxmqcjmrprdewsw { text-align: center; }
      .table td.tinytable_css_yg0ow8waql4maorg1y82, .table th.tinytable_css_yg0ow8waql4maorg1y82 { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_7ly73lldzlrs3aun2rbz, .table th.tinytable_css_7ly73lldzlrs3aun2rbz { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_frqiefrunpcf7gnj7m5a, .table th.tinytable_css_frqiefrunpcf7gnj7m5a { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_saa6ml5hrpoaw0d9vjv2, .table th.tinytable_css_saa6ml5hrpoaw0d9vjv2 { text-align: left; }
      .table td.tinytable_css_9wmeasf4ceafu6ldfxbo, .table th.tinytable_css_9wmeasf4ceafu6ldfxbo { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_1cfkz44uzvb660eedx8t" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">Empty row</td>
                  <td data-row="1" data-col="1">-</td>
                  <td data-row="1" data-col="2">-</td>
                </tr>
<tr>
<td data-row="2" data-col="0">(Intercept)</td>
                  <td data-row="2" data-col="1">-6.188</td>
                  <td data-row="2" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Another empty row</td>
                  <td data-row="3" data-col="1">?</td>
                  <td data-row="3" data-col="2">?</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(5.960)</td>
                  <td data-row="4" data-col="2">(1.973)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Height</td>
                  <td data-row="5" data-col="1">0.256</td>
                  <td data-row="5" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1">(0.078)</td>
                  <td data-row="6" data-col="2">(0.028)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Volume</td>
                  <td data-row="7" data-col="1"></td>
                  <td data-row="7" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="8" data-col="0"></td>
                  <td data-row="8" data-col="1"></td>
                  <td data-row="8" data-col="2">(0.011)</td>
                </tr>
<tr>
<td data-row="9" data-col="0">Num.Obs.</td>
                  <td data-row="9" data-col="1">31</td>
                  <td data-row="9" data-col="2">31</td>
                </tr>
<tr>
<td data-row="10" data-col="0">R2</td>
                  <td data-row="10" data-col="1">0.270</td>
                  <td data-row="10" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="11" data-col="0">R2 Adj.</td>
                  <td data-row="11" data-col="1">0.244</td>
                  <td data-row="11" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="12" data-col="0">AIC</td>
                  <td data-row="12" data-col="1">154.1</td>
                  <td data-row="12" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="13" data-col="0">BIC</td>
                  <td data-row="13" data-col="1">158.4</td>
                  <td data-row="13" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="14" data-col="0">Log.Lik.</td>
                  <td data-row="14" data-col="1">-74.061</td>
                  <td data-row="14" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="15" data-col="0">F</td>
                  <td data-row="15" data-col="1">10.707</td>
                  <td data-row="15" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="16" data-col="0">RMSE</td>
                  <td data-row="16" data-col="1">2.64</td>
                  <td data-row="16" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb42"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://rdrr.io/r/base/attr.html">attr</a></span><span class="op">(</span><span class="va">rows</span>, <span class="st">"position"</span><span class="op">)</span> <span class="op">&lt;-</span> <span class="st">"gof_start"</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, add_rows <span class="op">=</span> <span class="va">rows</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_438gcy59f6sze1dcpiv1(i, j, css_id) {
          var table = document.getElementById("tinytable_438gcy59f6sze1dcpiv1");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_438gcy59f6sze1dcpiv1(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_438gcy59f6sze1dcpiv1");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '16', j: 1 }, { i: '16', j: 2 },  ], css_id: 'tinytable_css_ovo2p69esfu021ey92q2',}, 
          { positions: [ { i: '6', j: 2 }, { i: '6', j: 1 },  ], css_id: 'tinytable_css_n7urehk5pcdly2lit4db',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '5', j: 1 }, { i: '2', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '14', j: 1 }, { i: '15', j: 1 }, { i: '12', j: 2 }, { i: '4', j: 1 }, { i: '1', j: 2 }, { i: '15', j: 2 }, { i: '3', j: 2 }, { i: '4', j: 2 }, { i: '5', j: 2 }, { i: '10', j: 2 }, { i: '7', j: 2 }, { i: '8', j: 2 }, { i: '9', j: 2 }, { i: '14', j: 2 }, { i: '11', j: 2 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_pmjhtycztngb7x16qywg',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_li8ipxsngkpmqwrtdoat',}, 
          { positions: [ { i: '16', j: 0 },  ], css_id: 'tinytable_css_56jsvhz5lsud4q71gkaj',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_kw6o7e1s7dt2r952colt',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '14', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 }, { i: '15', j: 0 },  ], css_id: 'tinytable_css_n1qdyjqp5isj350m8tv2',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_oij1sziuhxm9nlhv2m1o',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_438gcy59f6sze1dcpiv1(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_ovo2p69esfu021ey92q2, .table th.tinytable_css_ovo2p69esfu021ey92q2 { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_n7urehk5pcdly2lit4db, .table th.tinytable_css_n7urehk5pcdly2lit4db { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_pmjhtycztngb7x16qywg, .table th.tinytable_css_pmjhtycztngb7x16qywg { text-align: center; }
      .table td.tinytable_css_li8ipxsngkpmqwrtdoat, .table th.tinytable_css_li8ipxsngkpmqwrtdoat { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_56jsvhz5lsud4q71gkaj, .table th.tinytable_css_56jsvhz5lsud4q71gkaj { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_kw6o7e1s7dt2r952colt, .table th.tinytable_css_kw6o7e1s7dt2r952colt { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_n1qdyjqp5isj350m8tv2, .table th.tinytable_css_n1qdyjqp5isj350m8tv2 { text-align: left; }
      .table td.tinytable_css_oij1sziuhxm9nlhv2m1o, .table th.tinytable_css_oij1sziuhxm9nlhv2m1o { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_438gcy59f6sze1dcpiv1" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(5.960)</td>
                  <td data-row="2" data-col="2">(1.973)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.078)</td>
                  <td data-row="4" data-col="2">(0.028)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Volume</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(0.011)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Empty row</td>
                  <td data-row="7" data-col="1">-</td>
                  <td data-row="7" data-col="2">-</td>
                </tr>
<tr>
<td data-row="8" data-col="0">Another empty row</td>
                  <td data-row="8" data-col="1">?</td>
                  <td data-row="8" data-col="2">?</td>
                </tr>
<tr>
<td data-row="9" data-col="0">Num.Obs.</td>
                  <td data-row="9" data-col="1">31</td>
                  <td data-row="9" data-col="2">31</td>
                </tr>
<tr>
<td data-row="10" data-col="0">R2</td>
                  <td data-row="10" data-col="1">0.270</td>
                  <td data-row="10" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="11" data-col="0">R2 Adj.</td>
                  <td data-row="11" data-col="1">0.244</td>
                  <td data-row="11" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="12" data-col="0">AIC</td>
                  <td data-row="12" data-col="1">154.1</td>
                  <td data-row="12" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="13" data-col="0">BIC</td>
                  <td data-row="13" data-col="1">158.4</td>
                  <td data-row="13" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="14" data-col="0">Log.Lik.</td>
                  <td data-row="14" data-col="1">-74.061</td>
                  <td data-row="14" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="15" data-col="0">F</td>
                  <td data-row="15" data-col="1">10.707</td>
                  <td data-row="15" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="16" data-col="0">RMSE</td>
                  <td data-row="16" data-col="1">2.64</td>
                  <td data-row="16" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb43"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># notes</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, notes <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html">list</a></span><span class="op">(</span><span class="st">"A first note"</span>, <span class="st">"A second note"</span><span class="op">)</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_q6hes1dt47e7neo7ip1v(i, j, css_id) {
          var table = document.getElementById("tinytable_q6hes1dt47e7neo7ip1v");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_q6hes1dt47e7neo7ip1v(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_q6hes1dt47e7neo7ip1v");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '14', j: 1 }, { i: '14', j: 2 },  ], css_id: 'tinytable_css_7p2r0qobl46eanyh9e2g',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_4r4vpzj3nee8no4nx29c',}, 
          { positions: [ { i: '1', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '5', j: 1 }, { i: '4', j: 2 }, { i: '7', j: 1 }, { i: '8', j: 1 }, { i: '9', j: 1 }, { i: '10', j: 1 }, { i: '11', j: 1 }, { i: '12', j: 1 }, { i: '13', j: 1 }, { i: '12', j: 2 }, { i: '2', j: 1 }, { i: '1', j: 2 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '8', j: 2 }, { i: '5', j: 2 }, { i: '10', j: 2 }, { i: '7', j: 2 }, { i: '9', j: 2 }, { i: '11', j: 2 }, { i: '13', j: 2 },  ], css_id: 'tinytable_css_fww7dbwzv8fcrw0bynj4',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_slnv4vn8a34w27pi0y7g',}, 
          { positions: [ { i: '14', j: 0 },  ], css_id: 'tinytable_css_uf32ovg3e8202rwj9zny',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_lyt1r8q8yn4f22ga7d4j',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '10', j: 0 }, { i: '7', j: 0 }, { i: '8', j: 0 }, { i: '9', j: 0 }, { i: '11', j: 0 }, { i: '12', j: 0 }, { i: '13', j: 0 },  ], css_id: 'tinytable_css_265d4fnubbis39gm5wmg',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_pqwizo2do3eqkm33ksuj',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_q6hes1dt47e7neo7ip1v(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_7p2r0qobl46eanyh9e2g, .table th.tinytable_css_7p2r0qobl46eanyh9e2g { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_4r4vpzj3nee8no4nx29c, .table th.tinytable_css_4r4vpzj3nee8no4nx29c { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_fww7dbwzv8fcrw0bynj4, .table th.tinytable_css_fww7dbwzv8fcrw0bynj4 { text-align: center; }
      .table td.tinytable_css_slnv4vn8a34w27pi0y7g, .table th.tinytable_css_slnv4vn8a34w27pi0y7g { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_uf32ovg3e8202rwj9zny, .table th.tinytable_css_uf32ovg3e8202rwj9zny { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_lyt1r8q8yn4f22ga7d4j, .table th.tinytable_css_lyt1r8q8yn4f22ga7d4j { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_265d4fnubbis39gm5wmg, .table th.tinytable_css_265d4fnubbis39gm5wmg { text-align: left; }
      .table td.tinytable_css_pqwizo2do3eqkm33ksuj, .table th.tinytable_css_pqwizo2do3eqkm33ksuj { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_q6hes1dt47e7neo7ip1v" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tfoot>
<tr><td colspan="3">A first note</td></tr>
<tr><td colspan="3">A second note</td></tr>
</tfoot>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(5.960)</td>
                  <td data-row="2" data-col="2">(1.973)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.078)</td>
                  <td data-row="4" data-col="2">(0.028)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Volume</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(0.011)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">Num.Obs.</td>
                  <td data-row="7" data-col="1">31</td>
                  <td data-row="7" data-col="2">31</td>
                </tr>
<tr>
<td data-row="8" data-col="0">R2</td>
                  <td data-row="8" data-col="1">0.270</td>
                  <td data-row="8" data-col="2">0.941</td>
                </tr>
<tr>
<td data-row="9" data-col="0">R2 Adj.</td>
                  <td data-row="9" data-col="1">0.244</td>
                  <td data-row="9" data-col="2">0.937</td>
                </tr>
<tr>
<td data-row="10" data-col="0">AIC</td>
                  <td data-row="10" data-col="1">154.1</td>
                  <td data-row="10" data-col="2">78.2</td>
                </tr>
<tr>
<td data-row="11" data-col="0">BIC</td>
                  <td data-row="11" data-col="1">158.4</td>
                  <td data-row="11" data-col="2">84.0</td>
                </tr>
<tr>
<td data-row="12" data-col="0">Log.Lik.</td>
                  <td data-row="12" data-col="1">-74.061</td>
                  <td data-row="12" data-col="2">-35.116</td>
                </tr>
<tr>
<td data-row="13" data-col="0">F</td>
                  <td data-row="13" data-col="1">10.707</td>
                  <td data-row="13" data-col="2">222.471</td>
                </tr>
<tr>
<td data-row="14" data-col="0">RMSE</td>
                  <td data-row="14" data-col="1">2.64</td>
                  <td data-row="14" data-col="2">0.75</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb44"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># gof_map: tribble</span></span>
<span><span class="kw"><a href="https://rdrr.io/r/base/library.html">library</a></span><span class="op">(</span><span class="va"><a href="https://tibble.tidyverse.org/">tibble</a></span><span class="op">)</span></span>
<span><span class="va">gm</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://tibble.tidyverse.org/reference/tribble.html">tribble</a></span><span class="op">(</span></span>
<span>  <span class="op">~</span><span class="va">raw</span>, <span class="op">~</span><span class="va">clean</span>, <span class="op">~</span><span class="va">fmt</span>,</span>
<span>  <span class="st">"r.squared"</span>, <span class="st">"R Squared"</span>, <span class="fl">5</span><span class="op">)</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, gof_map <span class="op">=</span> <span class="va">gm</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_ljop89ket1pu1jaex838(i, j, css_id) {
          var table = document.getElementById("tinytable_ljop89ket1pu1jaex838");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_ljop89ket1pu1jaex838(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_ljop89ket1pu1jaex838");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '7', j: 1 }, { i: '7', j: 2 },  ], css_id: 'tinytable_css_bbv772rel6e6m3ljd3ah',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_oc8kh6g1m1t92pts7z9a',}, 
          { positions: [ { i: '1', j: 1 }, { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '5', j: 1 }, { i: '2', j: 2 }, { i: '3', j: 2 }, { i: '4', j: 1 }, { i: '1', j: 2 }, { i: '4', j: 2 }, { i: '5', j: 2 },  ], css_id: 'tinytable_css_kp802x2sg4q26lrwuokv',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_r7g7v49iq3ffu2dccy45',}, 
          { positions: [ { i: '7', j: 0 },  ], css_id: 'tinytable_css_hgmhj2vhvw8jxdyo2acl',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_c0etter5qc634qj4vklh',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 },  ], css_id: 'tinytable_css_fjauc7en6l4bbbfs5eem',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_it9et1rc1465lqzrqi1j',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_ljop89ket1pu1jaex838(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_bbv772rel6e6m3ljd3ah, .table th.tinytable_css_bbv772rel6e6m3ljd3ah { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_oc8kh6g1m1t92pts7z9a, .table th.tinytable_css_oc8kh6g1m1t92pts7z9a { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_kp802x2sg4q26lrwuokv, .table th.tinytable_css_kp802x2sg4q26lrwuokv { text-align: center; }
      .table td.tinytable_css_r7g7v49iq3ffu2dccy45, .table th.tinytable_css_r7g7v49iq3ffu2dccy45 { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_hgmhj2vhvw8jxdyo2acl, .table th.tinytable_css_hgmhj2vhvw8jxdyo2acl { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_c0etter5qc634qj4vklh, .table th.tinytable_css_c0etter5qc634qj4vklh { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_fjauc7en6l4bbbfs5eem, .table th.tinytable_css_fjauc7en6l4bbbfs5eem { text-align: left; }
      .table td.tinytable_css_it9et1rc1465lqzrqi1j, .table th.tinytable_css_it9et1rc1465lqzrqi1j { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_ljop89ket1pu1jaex838" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(5.960)</td>
                  <td data-row="2" data-col="2">(1.973)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.078)</td>
                  <td data-row="4" data-col="2">(0.028)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Volume</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(0.011)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">R Squared</td>
                  <td data-row="7" data-col="1">0.26965</td>
                  <td data-row="7" data-col="2">0.94080</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
<div class="sourceCode" id="cb45"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># gof_map: list of lists</span></span>
<span><span class="va">f</span> <span class="op">&lt;-</span> <span class="kw">function</span><span class="op">(</span><span class="va">x</span><span class="op">)</span> <span class="fu"><a href="https://rdrr.io/r/base/format.html">format</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/Round.html">round</a></span><span class="op">(</span><span class="va">x</span>, <span class="fl">3</span><span class="op">)</span>, big.mark <span class="op">=</span> <span class="st">","</span><span class="op">)</span></span>
<span><span class="va">gm</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html">list</a></span><span class="op">(</span></span>
<span>  <span class="fu"><a href="https://rdrr.io/r/base/list.html">list</a></span><span class="op">(</span><span class="st">"raw"</span> <span class="op">=</span> <span class="st">"nobs"</span>, <span class="st">"clean"</span> <span class="op">=</span> <span class="st">"N"</span>, <span class="st">"fmt"</span> <span class="op">=</span> <span class="va">f</span><span class="op">)</span>,</span>
<span>  <span class="fu"><a href="https://rdrr.io/r/base/list.html">list</a></span><span class="op">(</span><span class="st">"raw"</span> <span class="op">=</span> <span class="st">"AIC"</span>, <span class="st">"clean"</span> <span class="op">=</span> <span class="st">"aic"</span>, <span class="st">"fmt"</span> <span class="op">=</span> <span class="va">f</span><span class="op">)</span><span class="op">)</span></span>
<span><span class="fu"><a href="https://modelsummary.com/man/modelsummary.html">modelsummary</a></span><span class="op">(</span><span class="va">models</span>, gof_map <span class="op">=</span> <span class="va">gm</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<!-- preamble start -->

    <script>

      function styleCell_whor5sqfwcnty1g2rs5r(i, j, css_id) {
          var table = document.getElementById("tinytable_whor5sqfwcnty1g2rs5r");
          var cell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
          if (cell) {
              console.log(`Styling cell at (${i}, ${j}) with class ${css_id}`);
              cell.classList.add(css_id);
          } else {
              console.warn(`Cell at (${i}, ${j}) not found.`);
          }
      }
      function spanCell_whor5sqfwcnty1g2rs5r(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_whor5sqfwcnty1g2rs5r");
        const targetCell = table.querySelector(`[data-row="${i}"][data-col="${j}"]`);
        if (!targetCell) {
          console.warn(`Cell at (${i}, ${j}) not found.`);
        }

        // Get all cells that need to be removed
        const cellsToRemove = [];
        for (let r = 0; r < rowspan; r++) {
          for (let c = 0; c < colspan; c++) {
            if (r === 0 && c === 0) continue; // Skip the target cell
            const cell = table.querySelector(`[data-row="${i + r}"][data-col="${j + c}"]`);
            if (cell) {
              cellsToRemove.push(cell);
            }
          }
        }

        // Remove all cells
        cellsToRemove.forEach(cell => cell.remove());

        // Set rowspan and colspan of the target cell if it exists
        if (targetCell) {
          targetCell.rowSpan = rowspan;
          targetCell.colSpan = colspan;
        }
      }
      // tinytable span after
      window.addEventListener('load', function () {
          var cellsToStyle = [
            // tinytable style arrays after
          { positions: [ { i: '8', j: 1 }, { i: '8', j: 2 },  ], css_id: 'tinytable_css_0lx29wz6o4d6r0g7vhn1',}, 
          { positions: [ { i: '6', j: 1 }, { i: '6', j: 2 },  ], css_id: 'tinytable_css_s7h7b8pqrm9q7z8g3z21',}, 
          { positions: [ { i: '2', j: 1 }, { i: '3', j: 1 }, { i: '4', j: 1 }, { i: '1', j: 1 }, { i: '1', j: 2 }, { i: '7', j: 1 }, { i: '3', j: 2 }, { i: '5', j: 1 }, { i: '5', j: 2 }, { i: '2', j: 2 }, { i: '7', j: 2 }, { i: '4', j: 2 },  ], css_id: 'tinytable_css_jxjq4ypzt9lnztfi4zg9',}, 
          { positions: [ { i: '0', j: 1 }, { i: '0', j: 2 },  ], css_id: 'tinytable_css_0sz08ijhs1txe15lmtd3',}, 
          { positions: [ { i: '8', j: 0 },  ], css_id: 'tinytable_css_egu1m1e699ujlumckg99',}, 
          { positions: [ { i: '6', j: 0 },  ], css_id: 'tinytable_css_dzs2g6a593egg685k07m',}, 
          { positions: [ { i: '1', j: 0 }, { i: '2', j: 0 }, { i: '3', j: 0 }, { i: '4', j: 0 }, { i: '5', j: 0 }, { i: '7', j: 0 },  ], css_id: 'tinytable_css_r31g6muszxzlxvhw4wwo',}, 
          { positions: [ { i: '0', j: 0 },  ], css_id: 'tinytable_css_8w7ou9gmrkp0v05zuigm',}, 
          ];

          // Loop over the arrays to style the cells
          cellsToStyle.forEach(function (group) {
              group.positions.forEach(function (cell) {
                  styleCell_whor5sqfwcnty1g2rs5r(cell.i, cell.j, group.css_id);
              });
          });
      });
    </script><style>
      /* tinytable css entries after */
      .table td.tinytable_css_0lx29wz6o4d6r0g7vhn1, .table th.tinytable_css_0lx29wz6o4d6r0g7vhn1 { text-align: center; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_s7h7b8pqrm9q7z8g3z21, .table th.tinytable_css_s7h7b8pqrm9q7z8g3z21 { text-align: center; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_jxjq4ypzt9lnztfi4zg9, .table th.tinytable_css_jxjq4ypzt9lnztfi4zg9 { text-align: center; }
      .table td.tinytable_css_0sz08ijhs1txe15lmtd3, .table th.tinytable_css_0sz08ijhs1txe15lmtd3 { text-align: center; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
      .table td.tinytable_css_egu1m1e699ujlumckg99, .table th.tinytable_css_egu1m1e699ujlumckg99 { text-align: left; border-bottom: solid #d3d8dc 0.1em; }
      .table td.tinytable_css_dzs2g6a593egg685k07m, .table th.tinytable_css_dzs2g6a593egg685k07m { text-align: left; border-bottom: solid black 0.05em; }
      .table td.tinytable_css_r31g6muszxzlxvhw4wwo, .table th.tinytable_css_r31g6muszxzlxvhw4wwo { text-align: left; }
      .table td.tinytable_css_8w7ou9gmrkp0v05zuigm, .table th.tinytable_css_8w7ou9gmrkp0v05zuigm { text-align: left; border-top: solid #d3d8dc 0.1em; border-bottom: solid #d3d8dc 0.05em; }
    </style>
<div class="container">
      <table class="table table-borderless" id="tinytable_whor5sqfwcnty1g2rs5r" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing="true">
<thead><tr>
<th scope="col" data-row="0" data-col="0"> </th>
                <th scope="col" data-row="0" data-col="1">Bivariate</th>
                <th scope="col" data-row="0" data-col="2">Multivariate</th>
              </tr></thead>
<tbody>
<tr>
<td data-row="1" data-col="0">(Intercept)</td>
                  <td data-row="1" data-col="1">-6.188</td>
                  <td data-row="1" data-col="2">10.816</td>
                </tr>
<tr>
<td data-row="2" data-col="0"></td>
                  <td data-row="2" data-col="1">(5.960)</td>
                  <td data-row="2" data-col="2">(1.973)</td>
                </tr>
<tr>
<td data-row="3" data-col="0">Height</td>
                  <td data-row="3" data-col="1">0.256</td>
                  <td data-row="3" data-col="2">-0.045</td>
                </tr>
<tr>
<td data-row="4" data-col="0"></td>
                  <td data-row="4" data-col="1">(0.078)</td>
                  <td data-row="4" data-col="2">(0.028)</td>
                </tr>
<tr>
<td data-row="5" data-col="0">Volume</td>
                  <td data-row="5" data-col="1"></td>
                  <td data-row="5" data-col="2">0.195</td>
                </tr>
<tr>
<td data-row="6" data-col="0"></td>
                  <td data-row="6" data-col="1"></td>
                  <td data-row="6" data-col="2">(0.011)</td>
                </tr>
<tr>
<td data-row="7" data-col="0">N</td>
                  <td data-row="7" data-col="1">31</td>
                  <td data-row="7" data-col="2">31</td>
                </tr>
<tr>
<td data-row="8" data-col="0">aic</td>
                  <td data-row="8" data-col="1">154.121504074557</td>
                  <td data-row="8" data-col="2">78.2328922725327</td>
                </tr>
</tbody>
</table>
</div>
<!-- hack to avoid NA insertion in last line -->
</div>
</div>


</section></section></main><!-- /main --><script id="quarto-html-after-body" type="application/javascript">
  window.document.addEventListener("DOMContentLoaded", function (event) {
    const icon = "";
    const anchorJS = new window.AnchorJS();
    anchorJS.options = {
      placement: 'right',
      icon: icon
    };
    anchorJS.add('.anchored');
    const isCodeAnnotation = (el) => {
      for (const clz of el.classList) {
        if (clz.startsWith('code-annotation-')) {                     
          return true;
        }
      }
      return false;
    }
    const onCopySuccess = function(e) {
      // button target
      const button = e.trigger;
      // don't keep focus
      button.blur();
      // flash "checked"
      button.classList.add('code-copy-button-checked');
      var currentTitle = button.getAttribute("title");
      button.setAttribute("title", "Copied!");
      let tooltip;
      if (window.bootstrap) {
        button.setAttribute("data-bs-toggle", "tooltip");
        button.setAttribute("data-bs-placement", "left");
        button.setAttribute("data-bs-title", "Copied!");
        tooltip = new bootstrap.Tooltip(button, 
          { trigger: "manual", 
            customClass: "code-copy-button-tooltip",
            offset: [0, -8]});
        tooltip.show();    
      }
      setTimeout(function() {
        if (tooltip) {
          tooltip.hide();
          button.removeAttribute("data-bs-title");
          button.removeAttribute("data-bs-toggle");
          button.removeAttribute("data-bs-placement");
        }
        button.setAttribute("title", currentTitle);
        button.classList.remove('code-copy-button-checked');
      }, 1000);
      // clear code selection
      e.clearSelection();
    }
    const getTextToCopy = function(trigger) {
        const codeEl = trigger.previousElementSibling.cloneNode(true);
        for (const childEl of codeEl.children) {
          if (isCodeAnnotation(childEl)) {
            childEl.remove();
          }
        }
        return codeEl.innerText;
    }
    const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
      text: getTextToCopy
    });
    clipboard.on('success', onCopySuccess);
    if (window.document.getElementById('quarto-embedded-source-code-modal')) {
      const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
        text: getTextToCopy,
        container: window.document.getElementById('quarto-embedded-source-code-modal')
      });
      clipboardModal.on('success', onCopySuccess);
    }
      var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
      var mailtoRegex = new RegExp(/^mailto:/);
        var filterRegex = new RegExp('/' + window.location.host + '/');
      var isInternal = (href) => {
          return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
      }
      // Inspect non-navigation links and adorn them if external
     var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
      for (var i=0; i<links.length; i++) {
        const link = links[i];
        if (!isInternal(link.href)) {
          // undo the damage that might have been done by quarto-nav.js in the case of
          // links that we want to consider external
          if (link.dataset.originalHref !== undefined) {
            link.href = link.dataset.originalHref;
          }
        }
      }
    function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
      const config = {
        allowHTML: true,
        maxWidth: 500,
        delay: 100,
        arrow: false,
        appendTo: function(el) {
            return el.parentElement;
        },
        interactive: true,
        interactiveBorder: 10,
        theme: 'quarto',
        placement: 'bottom-start',
      };
      if (contentFn) {
        config.content = contentFn;
      }
      if (onTriggerFn) {
        config.onTrigger = onTriggerFn;
      }
      if (onUntriggerFn) {
        config.onUntrigger = onUntriggerFn;
      }
      window.tippy(el, config); 
    }
    const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
    for (var i=0; i<noterefs.length; i++) {
      const ref = noterefs[i];
      tippyHover(ref, function() {
        // use id or data attribute instead here
        let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
        try { href = new URL(href).hash; } catch {}
        const id = href.replace(/^#\/?/, "");
        const note = window.document.getElementById(id);
        if (note) {
          return note.innerHTML;
        } else {
          return "";
        }
      });
    }
    const xrefs = window.document.querySelectorAll('a.quarto-xref');
    const processXRef = (id, note) => {
      // Strip column container classes
      const stripColumnClz = (el) => {
        el.classList.remove("page-full", "page-columns");
        if (el.children) {
          for (const child of el.children) {
            stripColumnClz(child);
          }
        }
      }
      stripColumnClz(note)
      if (id === null || id.startsWith('sec-')) {
        // Special case sections, only their first couple elements
        const container = document.createElement("div");
        if (note.children && note.children.length > 2) {
          container.appendChild(note.children[0].cloneNode(true));
          for (let i = 1; i < note.children.length; i++) {
            const child = note.children[i];
            if (child.tagName === "P" && child.innerText === "") {
              continue;
            } else {
              container.appendChild(child.cloneNode(true));
              break;
            }
          }
          if (window.Quarto?.typesetMath) {
            window.Quarto.typesetMath(container);
          }
          return container.innerHTML
        } else {
          if (window.Quarto?.typesetMath) {
            window.Quarto.typesetMath(note);
          }
          return note.innerHTML;
        }
      } else {
        // Remove any anchor links if they are present
        const anchorLink = note.querySelector('a.anchorjs-link');
        if (anchorLink) {
          anchorLink.remove();
        }
        if (window.Quarto?.typesetMath) {
          window.Quarto.typesetMath(note);
        }
        if (note.classList.contains("callout")) {
          return note.outerHTML;
        } else {
          return note.innerHTML;
        }
      }
    }
    for (var i=0; i<xrefs.length; i++) {
      const xref = xrefs[i];
      tippyHover(xref, undefined, function(instance) {
        instance.disable();
        let url = xref.getAttribute('href');
        let hash = undefined; 
        if (url.startsWith('#')) {
          hash = url;
        } else {
          try { hash = new URL(url).hash; } catch {}
        }
        if (hash) {
          const id = hash.replace(/^#\/?/, "");
          const note = window.document.getElementById(id);
          if (note !== null) {
            try {
              const html = processXRef(id, note.cloneNode(true));
              instance.setContent(html);
            } finally {
              instance.enable();
              instance.show();
            }
          } else {
            // See if we can fetch this
            fetch(url.split('#')[0])
            .then(res => res.text())
            .then(html => {
              const parser = new DOMParser();
              const htmlDoc = parser.parseFromString(html, "text/html");
              const note = htmlDoc.getElementById(id);
              if (note !== null) {
                const html = processXRef(id, note);
                instance.setContent(html);
              } 
            }).finally(() => {
              instance.enable();
              instance.show();
            });
          }
        } else {
          // See if we can fetch a full url (with no hash to target)
          // This is a special case and we should probably do some content thinning / targeting
          fetch(url)
          .then(res => res.text())
          .then(html => {
            const parser = new DOMParser();
            const htmlDoc = parser.parseFromString(html, "text/html");
            const note = htmlDoc.querySelector('main.content');
            if (note !== null) {
              // This should only happen for chapter cross references
              // (since there is no id in the URL)
              // remove the first header
              if (note.children.length > 0 && note.children[0].tagName === "HEADER") {
                note.children[0].remove();
              }
              const html = processXRef(null, note);
              instance.setContent(html);
            } 
          }).finally(() => {
            instance.enable();
            instance.show();
          });
        }
      }, function(instance) {
      });
    }
        let selectedAnnoteEl;
        const selectorForAnnotation = ( cell, annotation) => {
          let cellAttr = 'data-code-cell="' + cell + '"';
          let lineAttr = 'data-code-annotation="' +  annotation + '"';
          const selector = 'span[' + cellAttr + '][' + lineAttr + ']';
          return selector;
        }
        const selectCodeLines = (annoteEl) => {
          const doc = window.document;
          const targetCell = annoteEl.getAttribute("data-target-cell");
          const targetAnnotation = annoteEl.getAttribute("data-target-annotation");
          const annoteSpan = window.document.querySelector(selectorForAnnotation(targetCell, targetAnnotation));
          const lines = annoteSpan.getAttribute("data-code-lines").split(",");
          const lineIds = lines.map((line) => {
            return targetCell + "-" + line;
          })
          let top = null;
          let height = null;
          let parent = null;
          if (lineIds.length > 0) {
              //compute the position of the single el (top and bottom and make a div)
              const el = window.document.getElementById(lineIds[0]);
              top = el.offsetTop;
              height = el.offsetHeight;
              parent = el.parentElement.parentElement;
            if (lineIds.length > 1) {
              const lastEl = window.document.getElementById(lineIds[lineIds.length - 1]);
              const bottom = lastEl.offsetTop + lastEl.offsetHeight;
              height = bottom - top;
            }
            if (top !== null && height !== null && parent !== null) {
              // cook up a div (if necessary) and position it 
              let div = window.document.getElementById("code-annotation-line-highlight");
              if (div === null) {
                div = window.document.createElement("div");
                div.setAttribute("id", "code-annotation-line-highlight");
                div.style.position = 'absolute';
                parent.appendChild(div);
              }
              div.style.top = top - 2 + "px";
              div.style.height = height + 4 + "px";
              div.style.left = 0;
              let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
              if (gutterDiv === null) {
                gutterDiv = window.document.createElement("div");
                gutterDiv.setAttribute("id", "code-annotation-line-highlight-gutter");
                gutterDiv.style.position = 'absolute';
                const codeCell = window.document.getElementById(targetCell);
                const gutter = codeCell.querySelector('.code-annotation-gutter');
                gutter.appendChild(gutterDiv);
              }
              gutterDiv.style.top = top - 2 + "px";
              gutterDiv.style.height = height + 4 + "px";
            }
            selectedAnnoteEl = annoteEl;
          }
        };
        const unselectCodeLines = () => {
          const elementsIds = ["code-annotation-line-highlight", "code-annotation-line-highlight-gutter"];
          elementsIds.forEach((elId) => {
            const div = window.document.getElementById(elId);
            if (div) {
              div.remove();
            }
          });
          selectedAnnoteEl = undefined;
        };
          // Handle positioning of the toggle
      window.addEventListener(
        "resize",
        throttle(() => {
          elRect = undefined;
          if (selectedAnnoteEl) {
            selectCodeLines(selectedAnnoteEl);
          }
        }, 10)
      );
      function throttle(fn, ms) {
      let throttle = false;
      let timer;
        return (...args) => {
          if(!throttle) { // first call gets through
              fn.apply(this, args);
              throttle = true;
          } else { // all the others get throttled
              if(timer) clearTimeout(timer); // cancel #2
              timer = setTimeout(() => {
                fn.apply(this, args);
                timer = throttle = false;
              }, ms);
          }
        };
      }
        // Attach click handler to the DT
        const annoteDls = window.document.querySelectorAll('dt[data-target-cell]');
        for (const annoteDlNode of annoteDls) {
          annoteDlNode.addEventListener('click', (event) => {
            const clickedEl = event.target;
            if (clickedEl !== selectedAnnoteEl) {
              unselectCodeLines();
              const activeEl = window.document.querySelector('dt[data-target-cell].code-annotation-active');
              if (activeEl) {
                activeEl.classList.remove('code-annotation-active');
              }
              selectCodeLines(clickedEl);
              clickedEl.classList.add('code-annotation-active');
            } else {
              // Unselect the line
              unselectCodeLines();
              clickedEl.classList.remove('code-annotation-active');
            }
          });
        }
    const findCites = (el) => {
      const parentEl = el.parentElement;
      if (parentEl) {
        const cites = parentEl.dataset.cites;
        if (cites) {
          return {
            el,
            cites: cites.split(' ')
          };
        } else {
          return findCites(el.parentElement)
        }
      } else {
        return undefined;
      }
    };
    var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
    for (var i=0; i<bibliorefs.length; i++) {
      const ref = bibliorefs[i];
      const citeInfo = findCites(ref);
      if (citeInfo) {
        tippyHover(citeInfo.el, function() {
          var popup = window.document.createElement('div');
          citeInfo.cites.forEach(function(cite) {
            var citeDiv = window.document.createElement('div');
            citeDiv.classList.add('hanging-indent');
            citeDiv.classList.add('csl-entry');
            var biblioDiv = window.document.getElementById('ref-' + cite);
            if (biblioDiv) {
              citeDiv.innerHTML = biblioDiv.innerHTML;
            }
            popup.appendChild(citeDiv);
          });
          return popup.innerHTML;
        });
      }
    }
  });
  </script><nav class="page-navigation"><div class="nav-page nav-page-previous">
      <a href="../vignettes/appearance.html" class="pagination-link" aria-label="Themes and Styles">
        <i class="bi bi-arrow-left-short"></i> <span class="nav-page-text">Themes and Styles</span>
      </a>          
  </div>
  <div class="nav-page nav-page-next">
      <a href="../man/modelplot.html" class="pagination-link" aria-label="`modelplot`">
        <span class="nav-page-text"><code>modelplot</code></span> <i class="bi bi-arrow-right-short"></i>
      </a>
  </div>
</nav>
</div> <!-- /content -->



</body></html>